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 override void SetProfile(Dog dog)
 {
     base.SetProfile(dog);
     checkReferences();
     if (checkAdopted(dogInfo))
     {
         showAdopted();
     }
     else
     {
         showDefault();
         priceTag.Set(dogInfo.CostToAdopt);
     }
 }
Exemplo n.º 3
0
    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();
        }
    }