public void Setup(ISaleable _item) { Item = _item; IconImage.sprite = _item.Icon; NameTxt.text = _item.Name; DescriptionTxt.text = _item.Description(); }
public void Setup(ISaleable _item, ShopBase _shop) { Item = _item; IconImage.sprite = _item.Icon; NameTxt.text = _item.Name; DescriptionTxt.text = _item.Description(); PriceTxt.text = _item.Price.ToString(); BuyButtonData.GetComponent <MyBuyButton3DData>().SetupButtonData(_shop, _item, BuyButton); }