奖励结算++

This commit is contained in:
2025-08-20 09:59:01 +08:00
parent bee97b4fe8
commit dbe2da2927
6 changed files with 2799 additions and 431 deletions

View File

@@ -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