public void SetShopItem(int itemIndex, IShopItem item, IShopManager shop) { itemImage.sprite = item.GetItemSprite(); currencyImage.sprite = item.GetCurrencySprite(); nameLabel.text = item.GetName(); costLabel.text = item.GetCost().ToString("n0"); button.onClick.AddListener(delegate { shop.BuyItem(itemIndex); }); }