Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public void ShowDefault()
 {
     priceTag.ShowPurchasable();
 }