public void AddToInventory(InventoryItemBehaviour item) { Debug.Log("Adding item: " + item.itemName); Debug.Log(item); inventory.Add(item); }
public void RemoveNewItem(string name) { InventoryItemBehaviour item = _items.Find(x => x.Item != null && x.Item.Name == name); if (item) { item.RemoveItem(); } }
public bool InInventory(InventoryItemBehaviour item) { return(inventory.Contains(item)); }
public void RemoveFromInventory(InventoryItemBehaviour item) { Debug.Log("Removing item: " + item.itemName); inventory.Remove(item); }