public void Init(ShopItem item, ShopAmountSelector amountSelector) { subscribeEvents(); this.item = item; this.amountSelector = amountSelector; if (nameText) { nameText.text = item.ItemName; } priceTag.Set(item.CostAmount); priceTag.ShowPurchasable(); itemImage.sprite = item.Icon; itemImage.color = item.IconColor; }
public override void SetProfile(Dog dog) { base.SetProfile(dog); checkReferences(); if (checkAdopted(dogInfo)) { showAdopted(); } else { showDefault(); priceTag.Set(dogInfo.CostToAdopt); } }
public override void Init(DogDescriptor dog) { base.Init(dog); checkReferences(); priceTag.Set(dog.CostToAdopt); priceTag.SetNonPurchasable(tuning.AdoptedText, tuning.NonPurchasableTextColor, tuning.NonPurchasableBackgroundColor); if (checkAdopted()) { ShowAdopt(); } else { ShowDefault(); } }