fix: 修复新波次开始后游戏阶段状态错误的问题
- 在 MissionComp 中新增波次时调用 enterPreparePhase 进入准备阶段 - 在 MissionMonComp 中检查战斗状态,避免波次结束后继续生成怪物 - 在 MissionCardComp 中监听新波次事件并进入准备阶段
This commit is contained in:
@@ -92,6 +92,7 @@ export class MissionMonCompComp extends CCComp {
|
||||
if(smc.mission.stop_mon_action) return;
|
||||
if(!smc.mission.in_fight) return;
|
||||
this.tryAdvanceWave();
|
||||
if(!smc.mission.in_fight) return;
|
||||
if(smc.mission.stop_spawn_mon) return;
|
||||
this.updateSpecialQueue(dt);
|
||||
this.updateWaveSpawn(dt);
|
||||
|
||||
Reference in New Issue
Block a user