示例#1
0
 public void itemUsed()
 {
     if (currentItem)
     {
         currentItem.Use();
         ClearItemSlots();
         MakeItemSlots();
         if (currentItem.numberHad == 0)
         {
             SetTextBtn("", false);
             RemoveFromPI();
         }
     }
 }
示例#2
0
 public void UseButtonPressed()
 {
     if (currentItem)
     {
         currentItem.Use();
         //clear all the inventory slots
         //refill the slots
         ClearInventorySlots();
         MakeInventorySlots();
         if (currentItem.numberHeld == 0)
         {
             SetTextAndButton("", false);
         }
     }
 }