This commit is contained in:
2024-11-13 10:26:06 +08:00
parent 208e8364a8
commit 4e08ad13d1
5 changed files with 475 additions and 69 deletions

View File

@@ -193,7 +193,6 @@ export class MapMonsterComp extends CCComp {
let mon:any = monsters[i].HeroView.node.position
smc.enemy_pos[i].x= mon.x
}
console.log("count_mon_pos",smc.enemy_pos);
}
count_hero_pos(){
let heros:any= ecs.query(ecs.allOf(HeroModelComp));
@@ -202,7 +201,6 @@ export class MapMonsterComp extends CCComp {
let ho:any = heros[i].HeroView.node.position
smc.hero_pos[i].x= ho.x
}
console.log("count_hero_pos",smc.hero_pos);
}
private on_do_add_hero(event: string, args: any) {