Пример #1
0
 public bool CanBuy(IInventoryOwner owner, ItemShop buyItem)
 {
     return(owner.GetCurrentCurency() < buyItem.Cost);
 }
Пример #2
0
 public bool CanBuy(IInventoryOwner owner, int index)
 {
     return(owner.GetCurrentCurency() < itemShops[index].Cost);
 }