示例#1
0
 private static bool IsItemUsed(DrinkData.ItemBean itembean)
 {
     if (itembean.itemNumber != 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 private static bool IsItemNumberRight(DrinkData.ItemBean itembean)
 {
     //Debug.Log(itembean.itemName + "所需数量为:" + itembean.itemNumber + '\n' + DrinkData.instance.itemData[itembean.itemId].itemName + "实际数量为" + DrinkData.instance.itemData[itembean.itemId].itemNumber);
     return(itembean.itemNumber == DrinkData.instance.itemData[itembean.itemId].itemNumber);
 }