等待战斗结束引导还原状态
parent
8d66b38c4c
commit
fba8eb0d3b
|
|
@ -115,6 +115,9 @@ namespace Gameplay.Guide
|
|||
if (IsGuiding)
|
||||
return;
|
||||
|
||||
if (ConditionReactor.INVALID_ALLOC_ID != reactionID)
|
||||
ConditionReactor.Instance.RemoveReaction(reactionID);
|
||||
|
||||
if (completeStepId == 0)
|
||||
completeStepId = (int)Actor.Instance.Logic.GetCount((uint)LogicID.NewGuideProgress);
|
||||
|
||||
|
|
@ -124,9 +127,6 @@ namespace Gameplay.Guide
|
|||
|
||||
curGroup = new GuideGroup(groupId, linkCfg);
|
||||
|
||||
if (ConditionReactor.INVALID_ALLOC_ID != reactionID)
|
||||
return;
|
||||
|
||||
if (curGroup.CurStep.Cfg.BeginCondition.Length <= 0)
|
||||
{
|
||||
OnBeginGuide(true, null, ConditionReactor.INVALID_ALLOC_ID);
|
||||
|
|
@ -363,6 +363,8 @@ namespace Gameplay.Guide
|
|||
private void RecoverState()
|
||||
{
|
||||
UIManager.Instance.IsEnableBack = true;
|
||||
ConditionReactor.Instance.RemoveReaction(reactionID);
|
||||
reactionID = ConditionReactor.INVALID_ALLOC_ID;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -712,7 +712,6 @@ namespace Gameplay.Guide
|
|||
base.DoGuide();
|
||||
|
||||
UIManager.Instance.CloseWindow(UINameConst.UI_Guide);
|
||||
LevelManager.Instance.ExitLevelChangeMainFunc = () => { return isContinue; };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
@ -722,10 +721,12 @@ namespace Gameplay.Guide
|
|||
|
||||
protected override void SetGuideState()
|
||||
{
|
||||
LevelManager.Instance.ExitLevelChangeMainFunc = () => { return isContinue; };
|
||||
}
|
||||
|
||||
protected override void RecoverState()
|
||||
{
|
||||
LevelManager.Instance.ExitLevelChangeMainFunc = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue