Exemplo n.º 1
0
 public void Setup(Shop currentShop, ShopItem item)
 {
     this.currentShop       = currentShop;
     this.item              = item;
     iconField.sprite       = item.GetIcon();
     nameField.text         = item.GetName();
     availabilityField.text = $"{item.GetAvailability()}";
     priceField.text        = $"${item.GetPrice():N2}";
     quantityField.text     = $"{item.GetQuantityInTransaction()}";
 }