Пример #1
0
    void CreateNodeObject(Node node, Vector2 location)
    {
        GameObject clone;

        clone = Instantiate(nodePrefab, location, nodePrefab.transform.rotation);
        NodeUIHandler nodeUI = clone.GetComponent <NodeUIHandler>();

        nodeUI.myNode          = node;
        nodeUI.myNode.location = location;
        activeUIElements.Add(clone);
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     ui_handler = FindObjectOfType <NodeUIHandler>();
     pu_handler = FindObjectOfType <PowerUpUIHandler>();
 }