diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 6ea11e08..451db109 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -96,11 +96,16 @@ export class HeroViewComp extends CCComp { dir_y:number = 0; speek_time:number = 0; role_heros_index:number = -1; + + + //测试修改 onLoad() { this.as = this.getComponent(HeroSpine); // this.BoxRang = this.node.getChildByName("range_box"); // this.BoxRang = this.node.getChildByName("range_box"); + } /** 视图层逻辑代码分离演示 */ + start () { this.as.move() this.node.getChildByName("top").getChildByName("hp").active = false;