コード例 #1
0
ファイル: InventItemScript.cs プロジェクト: nasa03/RSG
 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;
         }
     }
 }