ddd
This commit is contained in:
@@ -40,7 +40,7 @@ export const MonList = [5201,5202,5203,5204,5205,5206,5219,5220,5221,5222,5223,5
|
||||
export const Masters = [5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5012]
|
||||
|
||||
export const HeroPos={
|
||||
0:{pos:v3(-290,0,0)},
|
||||
0:{pos:v3(-160,0,0)},
|
||||
1:{pos:v3(0,0,0)},
|
||||
2:{pos:v3(-100,0,0)},
|
||||
}
|
||||
|
||||
@@ -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