dd
This commit is contained in:
@@ -20,13 +20,14 @@ export class VictoryComp extends CCComp {
|
||||
this.on(GameEvent.FightEnd,this.fight_end,this)
|
||||
}
|
||||
onAdded(args: any) {
|
||||
|
||||
console.log("[VictoryComp] onAdded",args)
|
||||
}
|
||||
mission_start(){
|
||||
this.hide()
|
||||
}
|
||||
fight_end(e:any,val:any){
|
||||
console.log("[VictoryComp] fight_end",val)
|
||||
this.node.getChildByName("title").getChildByName("victory").active=val.victory
|
||||
this.node.getChildByName("title").getChildByName("defeat").active=!val.victory
|
||||
this.open()
|
||||
}
|
||||
victory_end(){
|
||||
|
||||
Reference in New Issue
Block a user