英雄和敌人 全死亡后,判定解决

This commit is contained in:
panfudan
2025-08-12 20:20:05 +08:00
parent b77f023548
commit d464491172
18 changed files with 1731 additions and 2685 deletions

View File

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