Exemplo n.º 1
0
        public static ConsumableFarmItem GetItemStats(FarmItemType type)
        {
            for (int i = 0; i < farmItemList.ConsumableFarmItems.Count; i++)
            {
                if (farmItemList.ConsumableFarmItems[i].ItemType == type)
                {
                    return(farmItemList.ConsumableFarmItems[i]);
                }
            }

            return(null);
        }
Exemplo n.º 2
0
 public ShopItem(FarmItemType type, float cost)
 {
     _itemType = type;
     _cost     = cost;
 }