|
@@ -602,7 +602,7 @@ export default class GameUI extends BaseUI {
|
|
}
|
|
}
|
|
Data.user.eliteId = allElites[index].ID
|
|
Data.user.eliteId = allElites[index].ID
|
|
}
|
|
}
|
|
- Mgr.ui.show(UI.GameResultUI, result)
|
|
|
|
|
|
+ this.showGameResult(result)
|
|
}
|
|
}
|
|
|
|
|
|
onRelicEventSelectRsp(data: relicEventSelectRsp, rewardsNty: IRewardNty) {
|
|
onRelicEventSelectRsp(data: relicEventSelectRsp, rewardsNty: IRewardNty) {
|
|
@@ -611,7 +611,7 @@ export default class GameUI extends BaseUI {
|
|
startTime: this.startTime,
|
|
startTime: this.startTime,
|
|
rewardsNty,
|
|
rewardsNty,
|
|
}
|
|
}
|
|
- Mgr.ui.show(UI.GameResultUI, result)
|
|
|
|
|
|
+ this.showGameResult(result)
|
|
}
|
|
}
|
|
|
|
|
|
onDailyInsEndRsp(data: dailyDungeonsEndRsp, rewardsNty: IRewardNty) {
|
|
onDailyInsEndRsp(data: dailyDungeonsEndRsp, rewardsNty: IRewardNty) {
|
|
@@ -625,7 +625,7 @@ export default class GameUI extends BaseUI {
|
|
result.isWin = false
|
|
result.isWin = false
|
|
this.isWin = false
|
|
this.isWin = false
|
|
}
|
|
}
|
|
- Mgr.ui.show(UI.GameResultUI, result)
|
|
|
|
|
|
+ this.showGameResult(result)
|
|
}
|
|
}
|
|
|
|
|
|
speedUpDataRsp(rsp: speedUpDataRsp) {
|
|
speedUpDataRsp(rsp: speedUpDataRsp) {
|
|
@@ -666,6 +666,12 @@ export default class GameUI extends BaseUI {
|
|
}
|
|
}
|
|
|
|
|
|
//游戏逻辑=======================================
|
|
//游戏逻辑=======================================
|
|
|
|
+ showGameResult(result: IGameResult) {
|
|
|
|
+ this.scheduleOnce(() => {
|
|
|
|
+ Mgr.ui.show(UI.GameResultUI, result)
|
|
|
|
+ }, 1)
|
|
|
|
+ }
|
|
|
|
+
|
|
async getGameResSync(url, type) {
|
|
async getGameResSync(url, type) {
|
|
let sa = await this.loadSync(Data.game.gameBundle, url, type)
|
|
let sa = await this.loadSync(Data.game.gameBundle, url, type)
|
|
return sa
|
|
return sa
|