This commit is contained in:
panfudan
2025-08-04 00:37:57 +08:00
parent f579ed49e7
commit 7b424d1649
6 changed files with 13972 additions and 13880 deletions

View File

@@ -24,7 +24,6 @@ export class BarCompComp extends CCComp {
protected onLoad(): void {
this.on(GameEvent.FightReady,this.readay,this)
this.on(GameEvent.MasterCalled,this.master_called,this)
this.on(GameEvent.APChange,this.ap_change,this)
}
@@ -46,18 +45,6 @@ export class BarCompComp extends CCComp {
});
}
private ap_change(e:any,data:any){
console.log("[barcomp]:ap_change",data)
if(data.is_master==true){
let barNode = this.node.getChildByName("bar").getChildByName("ap").getChildByName("val")
tween(barNode).to(0.2, {scale:v3(1.5,1.5,1)},{
onComplete:()=>{
tween(barNode).to(0.1, {scale:v3(1,1,1)}).start()
}
}).start()
}
}
show_master_more(){