Exemple #1
0
    private void AddConnection(EEdge connection)
    {
        GameObject     connectionInstance  = Instantiate(ConnectionPrefab, gameObject.transform);
        EEdgeComponent connectionComponent = connectionInstance.GetComponent <EEdgeComponent>();

        connectionComponent.Connection = connection;
    }
Exemple #2
0
 public void Refresh()
 {
     foreach (Transform child in gameObject.transform)
     {
         EEdgeComponent cc = child.gameObject.GetComponent <EEdgeComponent>();
         cc.UpdateConnectionListeners();
     }
 }