From 3c3a6b6d555826abbfed4621b45e386f42e736cc Mon Sep 17 00:00:00 2001 From: "pan@work" Date: Tue, 5 Nov 2024 15:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/hero/HeroViewComp.ts | 5 +++++ 1 file changed, 5 insertions(+) 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;