测试修改

This commit is contained in:
2024-11-05 15:55:16 +08:00
parent ba4f3e971f
commit 3c3a6b6d55

View File

@@ -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;