英雄上阵选择 基本完成

This commit is contained in:
2024-12-10 16:44:54 +08:00
parent 9cd72c108e
commit 5fdd6486de
26 changed files with 16811 additions and 12790 deletions

View File

@@ -211,6 +211,7 @@ export class MissionComp extends CCComp {
}
heros_call(){
let heros=smc.vmdata.fight_heros
console.log("heros_call",heros)
for(let i=0;i<heros.length;i++){
this.addHero(heros[i],i)
}
@@ -223,7 +224,7 @@ export class MissionComp extends CCComp {
for(let i=0;i<heros.length;i++){
let hcard = ecs.getEntity<HCard>(HCard)
// console.log("hcard:",hcard)
hcard.load(1001,i,node)
hcard.load(heros[i].HeroView.hero_uuid,i,node)
}
this.fight_start= true
}