Exemple #1
0
 public void MoveEquippedItemToInventory()
 {
     if (itemDataInSlot == null)
     {
         return;
     }
     //Only unequip if the inventory has an empty slot to put the item in
     if (inventory.AddItemToEmptySlot(ItemDataGameObject))
     {
         UnequipItem();
         ClearSlot();
     }
 }