ddd
This commit is contained in:
@@ -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(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user