diff --git a/assets/script/game/map/VictoryComp.ts b/assets/script/game/map/VictoryComp.ts index e4cab9be..ae124894 100644 --- a/assets/script/game/map/VictoryComp.ts +++ b/assets/script/game/map/VictoryComp.ts @@ -842,9 +842,16 @@ export class VictoryComp extends CCComp { /** * 确认按钮点击(代码绑定,btns/btn): - * 清理数据 → 派发 MissionEnd → 关闭结算弹窗 + * - 小节胜利(section)→ 派发 NextSection 推进下一节(修复:之前直接 MissionEnd 导致关卡未推进) + * - 末关通关(final) → 清理数据 → 派发 MissionEnd → 关闭结算弹窗 + * - 失败(defeat) → 清理数据 → 派发 MissionEnd → 关闭结算弹窗 */ victory_end() { + if (this.settleType === "section") { + // 小节胜利:与"下一节"按钮行为一致,避免胜利后点退出直接结束关卡 + oops.message.dispatchEvent(GameEvent.NextSection); + return; + } this.clear_data() oops.message.dispatchEvent(GameEvent.MissionEnd) oops.gui.removeByNode(this.node)