public void FillShop() { for (int i = 0; i < contentItems.childCount; i++) { contentItems.GetChild(i).gameObject.SetActive(false); } for (int i = 0; i < ShopInstance.instance.playerShopManager.PlayerItems.Count; i++) { _currentItem = contentItems.GetChild(i).GetComponent <ItemGUI>(); _currentItem.gameObject.SetActive(true); _currentItem.SetItem(p_id: i, p_name: ShopInstance.instance.playerShopManager.PlayerItems[i].itemName, p_description: ShopInstance.instance.playerShopManager.PlayerItems[i].description, p_cost: ShopInstance.instance.playerShopManager.PlayerItems[i].cost, p_bought: ShopInstance.instance.playerShopManager.PlayerItems[i].bought, p_image: ShopInstance.instance.playerShopManager.PlayerItems[i].image); } }