添加英雄
This commit is contained in:
@@ -181,6 +181,7 @@ export class BuffComp extends Component {
|
||||
hp_show(){
|
||||
let hp_progress= this.heroView.hp/this.heroView.rhp_max;
|
||||
this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress;
|
||||
if(this.heroView.is_boss) return
|
||||
if(this.heroView.hp == this.heroView.rhp_max){
|
||||
this.node.getChildByName("top").getChildByName("hp").active = false;
|
||||
} else{
|
||||
|
||||
Reference in New Issue
Block a user