示例#1
0
    // 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 >>");
        }
    }
示例#2
0
 public void RemoveActorItem()
 {
     Debug.Log("Adding item with ID " + actorItem.Item.ItemID);
     Inventory.RemoveItem(actorItem);
     controller.ShowStartingInventory();
 }