Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        foreach (Placeable placeable in placeables)
        {
            placeablesMap[placeable.symbol] = placeable;
        }

        _wireBuilder = GetComponent <WireBuilder>();
    }