奖励结算++
This commit is contained in:
@@ -35,6 +35,9 @@ export class VictoryComp extends CCComp {
|
||||
this.add_reward(args.rewards)
|
||||
this.rewards=args.rewards
|
||||
}
|
||||
this.node.getChildByName("box").getChildByName("exp").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["exp"].toString()
|
||||
this.node.getChildByName("box").getChildByName("gold").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["gold"].toString()
|
||||
this.node.getChildByName("box").getChildByName("diamond").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["diamond"].toString()
|
||||
this.node.getChildByName("title").getChildByName("victory").active=args.victory
|
||||
this.node.getChildByName("title").getChildByName("defeat").active=!args.victory
|
||||
this.node.getChildByName("btns").getChildByName("next").active=false
|
||||
|
||||
@@ -444,3 +444,4 @@ export class GameDataManager {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user