Example #1
0
 public void useItem()
 {
     if (item != null)
     {
         if (!Shop.shopOpen && !isShopSlot)
         {
             item.Use(index);
         }
         else
         {
             if (isShopSlot)
             {
                 item.Buy(index);
             }
             else
             {
                 item.Sell(index);
             }
         }
     }
 }