上阵英雄选择 完成

This commit is contained in:
walkpan
2024-12-10 13:42:54 +08:00
parent 7388f06076
commit 9cd72c108e
7 changed files with 2165 additions and 4099 deletions

View File

@@ -32,6 +32,7 @@ export class HeroSet extends ecs.Entity {
if(smc.heros[uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
let hcc = node.getComponent(HeroSetComp)!;
console.log(hcc)
hcc.h_uuid = uuid;
this.add(hcc);
}