yyl
2025-08-08 a092d2f76692c87f5396a4f14ae6ab3c17325413
Main/System/KnapSack/Logic/ItemLogicUtility.cs
@@ -374,7 +374,7 @@
    /// <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)
        {
@@ -395,13 +395,14 @@
                //  是 弹出获取途径
                //  否 显示物品数量不足
                // 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)
        {
@@ -418,6 +419,8 @@
            //  是 弹出获取途径
            //  否 显示物品数量不足
            // SysNotifyMgr.Instance.ShowTip();
            // YYL TODO
            Debug.LogError("货币不足 " + moneyType);
        }
        return isEnough;