复制的数据 删除后的 代码需要注意
This commit is contained in:
@@ -387,7 +387,7 @@ export class HeroViewComp extends CCComp {
|
||||
|
||||
|
||||
in_atk(dt: number) {
|
||||
if(this.atk_time >= this.atk_cd*smc.vm_data.mission.hero.atk_cd){
|
||||
if(this.atk_time >= this.atk_cd/smc.vm_data.mission.hero.atk_cd){
|
||||
if(this.is_atking){
|
||||
this.atk_time = 0;
|
||||
// console.log("atk_cd:"+this.atk_cd);
|
||||
@@ -425,7 +425,6 @@ export class HeroViewComp extends CCComp {
|
||||
this.hp_max_add()
|
||||
this.hp += hp;
|
||||
this.hp_max += hp;
|
||||
console.log("hp_max:"+this.hp_max+":"+hp+":"+this.hp)
|
||||
let hp_progress= this.hp/this.hp_max;
|
||||
this.node.getChildByName("top").getChildByName("hp").getComponent(ProgressBar)!.progress = hp_progress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user