From 28b557f18f85dd5f9a71451f4f5440e247667765 Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 24 Apr 2025 10:51:37 +0800 Subject: [PATCH] dd --- assets/script/game/map/MissionHeroComp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/script/game/map/MissionHeroComp.ts b/assets/script/game/map/MissionHeroComp.ts index 8e817e79..8ee4a19e 100644 --- a/assets/script/game/map/MissionHeroComp.ts +++ b/assets/script/game/map/MissionHeroComp.ts @@ -55,7 +55,7 @@ export class MissionHeroCompComp extends CCComp { console.log("call_hero addHero",uuid) let info:any={ap:0,hp:0} if(this.start_pos[HeroInfo[uuid].type].has){ - info=this.remove_hero(HeroInfo[uuid].type) + info=this.her_remove_and_get_info(HeroInfo[uuid].type) } let hero = ecs.getEntity(Hero); let scale = 1 @@ -64,7 +64,7 @@ export class MissionHeroCompComp extends CCComp { hero.load(pos,scale,uuid,info); this.start_pos[HeroInfo[uuid].type].has=true } - remove_hero(type:number){ + her_remove_and_get_info(type:number){ let info:any={ap:0,hp:0} let heros=ecs.query(ecs.allOf(HeroModelComp)) for(let hero of heros){