Пример #1
0
 private bool HasSpace(IItemContainer itemContainer) {
     foreach (ItemAmount itemAmount in Results){
         if(!itemContainer.CanAddItem(itemAmount.Item, itemAmount.Amount)){
             Debug.LogWarning("Your inventory is full.");
             return false;
         }
     }
     return true;
 }
Пример #2
0
 public bool HasSpace(IItemContainer itemContainer)
 {
     foreach (ItemAmount itemAmount in Results)
     {
         if (!itemContainer.CanAddItem(itemAmount.Item, itemAmount.Amount))
         {
             return(false);
         }
     }
     return(true);
 }
Пример #3
0
 private bool HasSpace(IItemContainer itemContainer)
 {
     foreach (ItemAmount itemAmount in Results)
     {
         Debug.LogError(itemAmount.Item.Name + " " + itemAmount.Amount);
         if (!itemContainer.CanAddItem(itemAmount.Item, itemAmount.Amount))
         {
             Debug.LogWarning("Your inventory is full.");
             return(false);
         }
     }
     return(true);
 }