public void OptionSelected(InventoryOption option) { switch (option) { case InventoryOption.Drop: focusedSlot.slot.DropItem(); break; case InventoryOption.Use: focusedSlot.slot.UseItem(); break; case InventoryOption.Equip: focusedSlot.slot.EquipItem(); break; case InventoryOption.Unequip: focusedSlot.slot.UnequipItem(); break; case InventoryOption.Move: playerInventory.MoveItem(focusedSlot.slotID); break; } Confirm(); }
public void SetOption(InventoryOption o, InventoryOptionList list) { this.list = list; option = o; text.text = option.ToString(); }