// Start is called before the first frame update
 void Start()
 {
     inventoryUI.SetActive(false);
     inventory = Inventory_VFP.instance;
     inventory.onItemChangedCallBack += UpdateUI;
     inventorySlots = ItemsParent.GetComponentsInChildren <InventorySlot_VFP>();
 }
Beispiel #2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of Inventory found");
     }
     instance = this;
 }