Example #1
0
 public void AddItem(ShopItemData item)
 {
     if (!Items.ContainsKey(item))
     {
         Items.Add(item, 1);
     }
     else
     {
         Items[item]++;
     }
     _shopItemList.RedrawUi();
 }
 private string getStringForItem(ShopItemData item)
 {
     return(String.Format("{1} {2}/{0}", ShopItemToCollect[item], item.ItemName, _inventory.GetAmountOfShopItemData(item)));
 }
Example #3
0
        public int GetAmountOfShopItemData(ShopItemData item)
        {
            int value;

            return(Items.TryGetValue(item, out value) ? value : 0);
        }