// Use this for initialization void Start() { AirInventory = AirRuneInventory.instance; AirInventory.onItemChangedCallback1 += UpdateAirUI; Debug.Log("air start works"); slots = itemsParent.GetComponentsInChildren <AirRuneInventorySlot>(); }
void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of Inventory found"); return; } instance = this; }