Example #1
0
 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);
     }
 }
Example #2
0
        public void RemoveItem(EquipSlot slot)
        {
            if (slot)
            {
                Item item = slot.item;
                if (ValidSlots[indexOfEquipedItem].item == item)
                {
                    lastEquipedItem = item;
                }

                slot.RemoveItem();
                onUnequipItem.Invoke(this, item);
            }
        }
Example #3
0
 public void OnDeselect(ItemSlot slot)
 {
     currentSelectedSlot = null;
 }
Example #4
0
 public void OnSelectSlot(ItemSlot slot)
 {
     currentSelectedSlot = slot as EquipSlot;
 }