lcy
7 小时以前 81a6da4df745f8ed5e4fb45fe54421eda792bf35
Main/System/NewBieGuidance/NewBieCenter.cs
@@ -25,7 +25,7 @@
    public bool inGuiding
    {
        // 当前有引导,并且不是暂停状态,则在引导中
        get { return currentGuide != 0 && IsPauseStoryBattleState(); }
        get { return currentGuide != 0 && IsNeedRecord(currentGuide); }
    }
    List<int> allGuides = new List<int>();
@@ -312,29 +312,15 @@
        }
    }
    public bool IsPauseStoryBattleState()
    //非0代表 可重复引导,且优先级低会被新引导替换,且不暂停主线战斗
    public bool IsNeedRecord(int _id)
    {
        if (!UIManager.Instance.IsOpened<NewBieWin>())
            return false;
        var stepConfig = ScriptableObjectLoader.LoadSoNewBieGuideStep(guideStep);
        if (!(stepConfig.guideType == GuideType.NewBie && stepConfig.clickCompleteNoMask))
        var config = GuideConfig.Get(_id);
        if (config == null)
        {
            // 非强制引导不暂停战斗,如有具体需要可以增加字段
            if (currentGuide == BattleManager.Instance.fightGuideID)
            {
                // 战斗引导中,不暂停
                return false;
            }
            return true;
            return false;
        }
        return false;
    }
    bool IsNeedRecord(int _id)
    {
        return GuideConfig.Get(_id).NoRecord == 0;
    }