This commit is contained in:
2025-08-05 23:50:49 +08:00
parent 97bba4edb7
commit 228014bc8f
3 changed files with 1126 additions and 334 deletions

View File

@@ -31,7 +31,7 @@ export class LifeComp extends Component {
nodes[this.loss_life].active=false
this.loss_life++
if(this.loss_life >= 3){
oops.message.dispatchEvent(GameEvent.MissionLoss)
oops.message.dispatchEvent(GameEvent.FightEnd)
}
}
}

View File

@@ -23,9 +23,9 @@ const { ccclass, property } = _decorator;
@ccclass('MissionComp')
@ecs.register('MissionComp', false)
export class MissionComp extends CCComp {
VictoryComp:any = null;
reward:number = 0;
reward_num:number = 0;
// VictoryComp:any = null;
// reward:number = 0;
// reward_num:number = 0;
GlodAddTimer:Timer = new Timer(1);
normal_max_wave:number = 10;
is_fight:boolean = false;