示例#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);
     }
 }
示例#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);
            }
        }
示例#3
0
 public void OnDeselect(ItemSlot slot)
 {
     currentSelectedSlot = null;
 }
示例#4
0
 public void OnSelectSlot(ItemSlot slot)
 {
     currentSelectedSlot = slot as EquipSlot;
 }