示例#1
0
文件: EEdges.cs 项目: mkecman/GameOne
    private void AddConnection(EEdge connection)
    {
        GameObject     connectionInstance  = Instantiate(ConnectionPrefab, gameObject.transform);
        EEdgeComponent connectionComponent = connectionInstance.GetComponent <EEdgeComponent>();

        connectionComponent.Connection = connection;
    }
示例#2
0
文件: EEdges.cs 项目: mkecman/GameOne
 public void Refresh()
 {
     foreach (Transform child in gameObject.transform)
     {
         EEdgeComponent cc = child.gameObject.GetComponent <EEdgeComponent>();
         cc.UpdateConnectionListeners();
     }
 }