| | |
| | | /// <param name="needCount 需要数量"></param>
|
| | | /// <param name="needTips 是否需要提示"></param>
|
| | | /// <returns></returns>
|
| | | public static bool CheckItemCount(PackType packType, int itemId, int needCount, bool needTips)
|
| | | public static bool CheckItemCount(PackType packType, int itemId, int needCount, bool needTips = false)
|
| | | {
|
| | | if (needCount <= 0)
|
| | | {
|
| | |
| | | // 是 弹出获取途径
|
| | | // 否 显示物品数量不足
|
| | | // SysNotifyMgr.Instance.ShowTip();
|
| | | // YYL TODO
|
| | | }
|
| | | }
|
| | |
|
| | | return isEnough;
|
| | | }
|
| | |
|
| | | public static bool CheckCurrencyCount(int moneyType, ulong needCount, bool needTips)
|
| | | public static bool CheckCurrencyCount(int moneyType, ulong needCount, bool needTips = false)
|
| | | {
|
| | | if (needCount <= 0)
|
| | | {
|
| | |
| | | // 是 弹出获取途径
|
| | | // 否 显示物品数量不足
|
| | | // SysNotifyMgr.Instance.ShowTip();
|
| | | // YYL TODO
|
| | | Debug.LogError("货币不足 " + moneyType);
|
| | | }
|
| | |
|
| | | return isEnough;
|