void Start()
 {
     manager = GameObject.FindWithTag("Managers").GetComponent <DEV_InventoryManager>();
     gameObject.GetComponent <Button>().onClick.AddListener(() => { if (occupied)
                                                                    {
                                                                        TakeItem();
                                                                    }
                                                                    else
                                                                    {
                                                                        PlaceItem(manager.currentlyHeld);
                                                                    } });
 }
 void Start()
 {
     manager = GetComponent <DEV_InventoryManager>();
 }
Beispiel #3
0
 void Start()
 {
     manager = GameObject.FindWithTag("Managers").GetComponent <DEV_InventoryManager>();
 }