// Start is called before the first frame update void Start() { availableItems = storeInventoryObject.GetInventory(); foreach (ItemInstance item in availableItems) { AddNewItemButton(item); } }
// Start is called before the first frame update void Start() { shelvedItems = new List <ItemInstance>(); CustomerManager = FindObjectOfType <CustomerDirector>(); //For every item in the player inventory, populate the inventory panel with an item button items = playerInventory.GetInventory(); foreach (ItemInstance item in items) { AddNewItemButton(item, playerInventoryPanel); } isShowing = false; ShelfCanvas.SetActive(isShowing); }