得分结算页面
This commit is contained in:
@@ -26,7 +26,7 @@ export class VictoryComp extends CCComp {
|
||||
/** 视图层逻辑代码分离演示 */
|
||||
protected onLoad(): void {
|
||||
this.on(GameEvent.MissionStart,this.mission_start,this)
|
||||
this.on(GameEvent.FightEnd,this.mission_complete,this)
|
||||
this.on(GameEvent.FightEnd,this.fight_end,this)
|
||||
}
|
||||
onAdded(args: any) {
|
||||
|
||||
@@ -34,7 +34,9 @@ export class VictoryComp extends CCComp {
|
||||
mission_start(){
|
||||
this.hide()
|
||||
}
|
||||
mission_complete(){
|
||||
fight_end(e:any,val:any){
|
||||
this.node.getChildByName("score").getComponent(Label).string=smc.mission.score.toString()
|
||||
this.node.getChildByName("score_add").getComponent(Label).string=smc.vmdata.mission_data.score.toString()
|
||||
this.open()
|
||||
}
|
||||
victory_end(){
|
||||
|
||||
Reference in New Issue
Block a user