清理掉 missioncomp的 抽卡相关的 游戏逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user