public void OnSubmitSlot(ItemSlot slot) { if (itemPicker != null) { currentSelectedSlot = slot as EquipSlot; itemPicker.gameObject.SetActive(true); itemPicker.CreateEquipmentWindow(inventory.items, currentSelectedSlot.itemType, slot.item, OnPickItem); } }
public void RemoveItem(EquipSlot slot) { if (slot) { Item item = slot.item; if (ValidSlots[indexOfEquipedItem].item == item) { lastEquipedItem = item; } slot.RemoveItem(); onUnequipItem.Invoke(this, item); } }
public void OnDeselect(ItemSlot slot) { currentSelectedSlot = null; }
public void OnSelectSlot(ItemSlot slot) { currentSelectedSlot = slot as EquipSlot; }