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