接下来测试强化

This commit is contained in:
2025-07-15 23:22:52 +08:00
parent 1780509509
commit 6f2af2f395
5 changed files with 44 additions and 3 deletions

View File

@@ -119,6 +119,7 @@ export class HeroViewComp extends CCComp {
this.on(GameEvent.ChangeATK_EQUIP_SPECIAL_ATTR,this.change_atk,this)
this.on(GameEvent.UpdateHP,this.update_hp,this)
this.on(GameEvent.EXPUP,this.exp_up,this)
this.on(GameEvent.UseEnhancement,this.use_enhancement,this)
// let anm = this.node.getChildByName("anm")
// anm.setScale(anm.scale.x*0.8,anm.scale.y*0.8);
}
@@ -156,7 +157,10 @@ export class HeroViewComp extends CCComp {
// 处理伤害队列
this.processDamageQueue();
}
use_enhancement(e:GameEvent,data:any){
console.log("[HeroViewComp]:use_enhancement",data)
}
change_atk(e:GameEvent,data:any){
if(!this.is_master) return