英雄出战选择 +英雄相关 ui 改变
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user