英雄和敌人 全死亡后,判定解决
This commit is contained in:
@@ -57,18 +57,6 @@ export class MSkillComp extends CCComp {
|
||||
}
|
||||
update(dt: number): void {
|
||||
if(!smc.mission.play||smc.mission.pause) return
|
||||
if(this.skill.uuid!=0){
|
||||
let cd=this.skill.cd/((smc.vmdata.hero.skill_cd_buff)/100+1)
|
||||
if(this.skill.cd_time < cd){
|
||||
this.skill.cd_time+=dt
|
||||
}else{
|
||||
if(this.skill.type==1){
|
||||
this.spell_skill()
|
||||
}
|
||||
}
|
||||
let progress=(1-this.skill.cd_time/cd)
|
||||
this.node.getChildByName("icon").getChildByName("cd").getComponent(ProgressBar).progress=progress
|
||||
}
|
||||
|
||||
}
|
||||
show_max(){
|
||||
|
||||
Reference in New Issue
Block a user