示例#1
0
 public void RemoveItem(int amount)
 {
     PickedItem.ReduceAmount(amount);
     if (PickedItem.Amount <= 0)
     {
         isPickedItem = false;
         PickedItem.Hide();
     }
 }
示例#2
0
 public void RemoveItemByAmount(int amount)
 {
     PickedItem.ReduceAmount(amount);
     if (PickedItem.m_amount <= 0)
     {
         PickedItem.Hide();
         m_isPickedItem = false;
     }
 }
 /// <summary>
 /// 鼠标上所有的物品都放入物品槽内
 /// </summary>
 public void ReduceAllPickedItem()
 {
     PickedItem.ReduceAmount(PickedItem.Amount);
     isPickedItem = false;
     PickedItem.HideItemUI();
 }