public void OnBeginDrag(PointerEventData eventData) { Debug.Log("ConnectionPoint OnBeginDrag"); currentWireBuilder = GameObject.Instantiate(wireBuilderPrefab, GetComponentInParent <CircuitDisplay>().wireContainer.transform).GetComponent <WireBuilder>(); currentWireBuilder.anchor = this; currentWireBuilder.OnBeginDrag(eventData); }
private void Awake() { foreach (Placeable placeable in placeables) { placeablesMap[placeable.symbol] = placeable; } _wireBuilder = GetComponent <WireBuilder>(); }