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