Example #1
0
 public void OnItemDequipRaised(ItemAndSlot itemUpdated)
 {
     if (responseDequip.GetPersistentEventCount() >= 1)
     {
         responseDequip.Invoke(itemUpdated);
     }
 }
Example #2
0
 public void EquipmentDequiped(ItemAndSlot item)
 {
     for (int i = eventListeners.Count - 1; i >= 0; i--)
     {
         eventListeners[i].OnItemDequipRaised(item);
     }
 }
Example #3
0
 public void EquipItem(ItemAndSlot item)
 {
     if (inventoryItems.ContainsKey(item.item.item_name))
     {
         inventoryItems[item.item.item_name].RemoveItem();
     }
 }
Example #4
0
        public void DequipItem(ItemAndSlot item)
        {
            if (item == null || item.item == null || item.item.item_name == "")
            {
                return;
            }

            EquipSlots[item.index].RemoveItem();
        }
Example #5
0
        public void EquipItem(ItemAndSlot item)
        {
            if (item == null || item.item == null || item.item.item_name == "")
            {
                return;
            }

            EquipSlots[item.index].AddItem(item.item);
        }
Example #6
0
 public void DequipItem(ItemAndSlot item)
 {
     if (item.item == null || item.item.item_name == null)
     {
         Debug.Log("item null", gameObject);
         return;
     }
     if (inventoryItems.ContainsKey(item.item.item_name))
     {
         inventoryItems[item.item.item_name].Select();
     }
     Sort();
 }