接下来 优化技能
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user