// Start is called before the first frame update void Start() { Inventory = NewEq.instance; Inventory.onItemCHangedCallback += UpdateUI; slots = itemsParent.GetComponentsInChildren <EqSlot>(); }
private void Awake() { if (instance != null) { Debug.LogWarning("Za duzo eq(czy cos takiego)"); return; } instance = this; }