英雄上阵选择 基本完成
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user