public void InitInventory(Inventory inventory) { GetComponent <Animator>().SetBool(InventoryOpen, true); var itemsMap = inventory.GetAllItemsMap(); foreach (var kvp in itemsMap) { CreateOrUpdateSlot(inventory, kvp.Key, kvp.Value); } }
public void InitInventory(Inventory inventory) { GetComponent <Animator>().SetBool(InventoryOpen, true); var itemsMap = inventory.GetAllItemsMap(); foreach (var kvp in itemsMap) { CreateOrUpdateSlot(inventory, kvp.Key, kvp.Value); } }