添加了几个英雄
This commit is contained in:
@@ -37,6 +37,7 @@ export class MapMonsterComp extends CCComp {
|
||||
setp_timer: Timer = new Timer(0.5);
|
||||
target_timer: Timer = new Timer(0.1);
|
||||
setp_num:number = 1;
|
||||
game_over:boolean = false;
|
||||
onLoad(){
|
||||
// 监听全局事件
|
||||
oops.message.on("other_add_monster", this.on_other_add_monster, this);
|
||||
@@ -58,6 +59,9 @@ export class MapMonsterComp extends CCComp {
|
||||
|
||||
}
|
||||
protected update(dt: number): void {
|
||||
if(smc.vm_data.game_over){
|
||||
return
|
||||
}
|
||||
if(this.setp_timer.update(dt)){
|
||||
this.monster_refresh()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user