Example #1
0
 public void EquipItem()
 {
     if (Set)
     {
         inventparent.SetItemAsEquiped(this);
         inventparent.UpdateUI(itemname + ": " + count, description, icon.sprite, this);
         //Debug.Log("Equipping " + itemname + " " + count);
         playerequipment.equipitem(thisgameobject, this, type);
         if (GetItemType() != "")
         {
             InventSlot.sprite = EquipedInventSlot;
         }
     }
 }