/// <summary>
        /// this is called when the action button on the inventory item is clicked.
        /// </summary>
        void OnInventoryItemClick(InventoryItemView item)
        {
            switch (viewMode)
            {
            case InventoryViewMode.EQUIP:
                onEquipItem.Invoke(item);
                break;

            case InventoryViewMode.SELL:
                onSellItem.Invoke(item);
                break;
            }
        }
Beispiel #2
0
 public void RemoveItem(InventoryItemView item)
 {
     Inventory.Instance.RemoveItem(item.GetItem());
 }