接下来测试强化
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user