This commit is contained in:
2025-04-24 10:44:21 +08:00
parent d3cdbff3d9
commit ff01b741fc
3 changed files with 2004 additions and 3067 deletions

View File

@@ -49,8 +49,10 @@ export class MissionHeroCompComp extends CCComp {
console.log("call_hero",uuid)
this.addHero(uuid)
}
/** 添加玩家 */
private addHero(uuid:number=1001) {
let heros=ecs.query(ecs.allOf(HeroModelComp))
console.log("call_hero addHero",uuid)
let info:any={ap:0,hp:0}
if(this.start_pos[HeroInfo[uuid].type].has){