引导的最后一步校验

main
yurui 2024-08-01 14:49:39 +08:00
parent 9e8eb03dfc
commit 761a960bd4
1 changed files with 4 additions and 2 deletions

View File

@ -259,7 +259,9 @@ namespace Gameplay.Guide
bool isGroupComplete = false; // 当前步骤所在引导组是否完成
DataGuideCfg nextCfg = guideConfig.Get(completeCfg.NextId);
if (nextCfg != null && nextCfg.GroupId != completeCfg.GroupId) // 该步骤是该组最后一步,表示整组完成
if (null == nextCfg)
return 0; // 没有下一步了
else if (nextCfg.GroupId != completeCfg.GroupId) // 该步骤是该组最后一步,表示整组完成
isGroupComplete = true;
else
{
@ -294,7 +296,7 @@ namespace Gameplay.Guide
return 0;
}
else
return completeCfg.GroupId; // 该组没有完成,
return completeCfg.GroupId; // 该组没有完成,
}
}
}