英雄出战选择 +英雄相关 ui 改变

This commit is contained in:
2025-08-17 20:40:03 +08:00
parent ba61724a08
commit 1a25a566c8
20 changed files with 6674 additions and 2240 deletions

View File

@@ -46,6 +46,7 @@ export class BuffComp extends Component {
this.top_node = this.node.getChildByName("top");
let hp_y=this.node.getComponent(UITransform).height
this.top_node.setPosition(0,hp_y,0)
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
// this.vmdata_update()

View File

@@ -145,6 +145,7 @@ export class HeroViewComp extends CCComp {
}
/* 显示角色血量 */
this.node.getChildByName("top").getChildByName("hp").active = true;
this.BUFFCOMP.show_shield(this.shield,this.shield_max)
}
update(dt: number){