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){