Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     waterInventory = WaterRuneInventory.instance;
     waterInventory.onItemChangedCallback1 += UpdatewaterUI;
     Debug.Log("water start works");
     slots = itemsParent.GetComponentsInChildren <WaterRuneInventorySlot>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of Inventory found");
         return;
     }
     instance = this;
 }