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); }
public ShopItem(FarmItemType type, float cost) { _itemType = type; _cost = cost; }