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; }
public bool HasSpace(IItemContainer itemContainer) { foreach (ItemAmount itemAmount in Results) { if (!itemContainer.CanAddItem(itemAmount.Item, itemAmount.Amount)) { return(false); } } return(true); }
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); }