private void AddConnection(EEdge connection) { GameObject connectionInstance = Instantiate(ConnectionPrefab, gameObject.transform); EEdgeComponent connectionComponent = connectionInstance.GetComponent <EEdgeComponent>(); connectionComponent.Connection = connection; }
public void Refresh() { foreach (Transform child in gameObject.transform) { EEdgeComponent cc = child.gameObject.GetComponent <EEdgeComponent>(); cc.UpdateConnectionListeners(); } }