This commit is contained in:
2274240467@qq.com 2025-11-28 13:42:49 +08:00
parent 62363b2beb
commit 1d1e30bd76
3 changed files with 124 additions and 875 deletions

View File

@ -1,11 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
/// <summary>
/// 连接点接口引用组件,用于关联连接点和目标接口
/// <EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>ӿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>ӿ<EFBFBD>
/// </summary>
public class ConnectionPointInterfaceReference : MonoBehaviour
{
public GameObject targetInterface; // 目标接口对象
public GameObject targetInterface; // Ŀ<><C4BF>ӿڶ<D3BF><DAB6><EFBFBD>
private MeshRenderer meshRenderer;
// public List<Material> materials = new List<Material>();
public void Start()
{
//materials = Resources.LoadAll<Material>("Material").ToList();
if (GetComponent<MeshRenderer>() != null)
{
meshRenderer = GetComponent<MeshRenderer>();
GameObject Cylinder = transform.parent.Find("WireCylinder").gameObject;
meshRenderer.materials[1].color = Cylinder.GetComponent<MeshRenderer>().material.color;
//meshRenderer.materials[1]
}
}
}

View File

@ -191,6 +191,7 @@ public class WireDataPersistence : MonoBehaviour
#else
CheckStandardFileExists();
#endif
return null;
}
/// <summary>

File diff suppressed because it is too large Load Diff