环境技能继续
This commit is contained in:
@@ -32,7 +32,6 @@ export class HeroSelect 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(HeroSelectComp)!;
|
||||
console.log(hcc)
|
||||
hcc.h_uuid = uuid;
|
||||
this.add(hcc);
|
||||
}
|
||||
|
||||
@@ -5,11 +5,9 @@ const { ccclass, property } = _decorator;
|
||||
export class UiHeroComp extends Component {
|
||||
h_uuid:number=0
|
||||
start() {
|
||||
console.log("UiHeroComp start",this.h_uuid)
|
||||
console.log(this)
|
||||
|
||||
}
|
||||
to_destroy(){
|
||||
console.log("UiHeroComp to_destroy",this.h_uuid)
|
||||
this.node.destroy()
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
|
||||
Reference in New Issue
Block a user