接下来 优化技能

This commit is contained in:
2024-09-13 10:41:38 +08:00
parent c8fe4a6ebe
commit 489b045982
40 changed files with 2010 additions and 22670 deletions

View File

@@ -188,8 +188,6 @@ export class RoleViewComp extends CCComp {
},0.5)
this.power = 0
}
let power_progress= this.power/this.power_max;
this.node.getChildByName("top").getChildByName("power").getComponent(ProgressBar)!.progress = power_progress;
}
shoot(skill_uuid:number){
// console.log("mon shoot");
@@ -257,14 +255,7 @@ export class RoleViewComp extends CCComp {
}
}
in_shield(){
let shield_progress= this.shield/this.shield_max;
this.node.getChildByName("top").getChildByName("shield").getComponent(ProgressBar)!.progress = shield_progress;
// if(this.shield <= 0){
// this.node.getChildByName("shield").active=false
// }else{
// this.node.getChildByName("shield").active=true
// }
}
hp_change(hp: number){
if(this.is_dead){