private void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of the infentory found"); } instance = this; }
private void Start() { slotGrid = SlotGrid.instance; slotGridManager = SlotGridStorageManager.instance; MaxSpace = slotGrid.AmountOfSlots.x * slotGrid.AmountOfSlots.y; }
private void Start() { inventory = Inventory.instance; slotGridManager = SlotGridStorageManager.instance; inventory.OnItemAddedCallBack += CreateInventoryItem; }