添加英雄

This commit is contained in:
2025-01-11 11:27:40 +08:00
parent 56832c41fe
commit 3bb8b689a6
126 changed files with 37305 additions and 11828 deletions

View File

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