清理掉 missioncomp的 抽卡相关的 游戏逻辑

This commit is contained in:
2025-08-11 22:02:20 +08:00
parent 89daacba36
commit 5bcf5e737b
13 changed files with 2344 additions and 1061 deletions

View File

@@ -35,10 +35,12 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 扩
private spawnCount: number = 0; // 召唤计数器
private pauseInterval: number = 5.0; // 暂停间隔时间5秒
private isPausing: boolean = false; // 是否正在暂停
onLoad(){
this.on(GameEvent.NewWave,this.do_mon_wave,this)
// this.on(GameEvent.NewWave,this.do_mon_wave,this)
this.on(GameEvent.FightReady,this.fight_ready,this)
}
/** 视图层逻辑代码分离演示 */
start() {
@@ -46,6 +48,11 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 扩
// this.on(ModuleEvent.Cmd, this.onHandler, this);
}
fight_ready(){
console.log("[MissionMonComp]:fight_ready")
this.do_mon_wave()
}
protected update(dt: number): void {
if(!smc.mission.play||smc.mission.pause) return