/// <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; } }
public void RemoveItem(InventoryItemView item) { Inventory.Instance.RemoveItem(item.GetItem()); }