// When clicked... public void AddActorItem() { if (Inventory == null) { Debug.LogError("No inventory found."); } if (controller.WeightCheckPassed(gameItem, ItemQuantity)) { Inventory.AddItem(gameItem.ItemID, ItemQuantity); controller.ShowStartingInventory(); } else { Debug.Log("<< TOO HEAVY >>"); } }
public void RemoveActorItem() { Debug.Log("Adding item with ID " + actorItem.Item.ItemID); Inventory.RemoveItem(actorItem); controller.ShowStartingInventory(); }