This commit is contained in:
2025-01-09 23:38:48 +08:00
parent 2a42f5b2c9
commit b4158a0a29
35 changed files with 3337 additions and 5937 deletions

View File

@@ -239,7 +239,7 @@ export class MissionComp extends CCComp {
let monsters:any= this.get_mons()
for(let i=0;i<monsters.length;i++){
if(monsters[i].HeroView == undefined) return
if(monsters[i].HeroView.in_grave) continue
if(monsters[i].HeroView.node.position.x > 400) continue
let mon:any = monsters[i].HeroView.node.position
smc.enemy_pos[i]= mon
if(monsters[i].HeroView.node.position.x > left_x){
@@ -259,7 +259,7 @@ export class MissionComp extends CCComp {
let heros:any= this.get_heros()
for(let i=0;i<heros.length;i++){
if(heros[i].HeroView == undefined) return
if(heros[i].HeroView.in_grave) continue
if(heros[i].HeroView.node.position.x < -400) continue
let ho:any = heros[i].HeroView.node.position
smc.hero_pos[i]= ho