|
|
@@ -555,26 +555,22 @@ class PlayGameActivity : BaseMVVMActivity<ActivityPlayGameBinding, PlayGameViewM
|
|
|
} else {
|
|
|
val score: Int = gameTotalScore.toInt() + gameDataBean.curLevelScore.toInt()
|
|
|
gameTotalScore = score.toString()
|
|
|
- if (TextUtils.equals("A", playClass)) {
|
|
|
- showCompletionTrainingDialog(gameDataBean)
|
|
|
- } else {
|
|
|
- //游戏成功/失败
|
|
|
- gameResultDialog = GameResultDialog()
|
|
|
- gameResultDialog?.setData(
|
|
|
- gameDataBean.curLevel,
|
|
|
- gameTotalScore,
|
|
|
- gameDataBean.curLevelScore,
|
|
|
- isPass
|
|
|
- )
|
|
|
- gameResultDialog?.onBackHomeDialogClickListener = {
|
|
|
- finish()
|
|
|
- LiveEventBusUtil.send(RxBusCodes.GAMEOVERTIME, "")
|
|
|
- }
|
|
|
- gameResultDialog?.onGameDialogClickListener = {
|
|
|
- loadJs(it)
|
|
|
- }
|
|
|
- gameResultDialog?.show(supportFragmentManager, "gameResultDialog")
|
|
|
+ //游戏成功/失败
|
|
|
+ gameResultDialog = GameResultDialog()
|
|
|
+ gameResultDialog?.setData(
|
|
|
+ gameDataBean.curLevel,
|
|
|
+ gameTotalScore,
|
|
|
+ gameDataBean.curLevelScore,
|
|
|
+ isPass
|
|
|
+ )
|
|
|
+ gameResultDialog?.onBackHomeDialogClickListener = {
|
|
|
+ finish()
|
|
|
+ LiveEventBusUtil.send(RxBusCodes.GAMEOVERTIME, "")
|
|
|
+ }
|
|
|
+ gameResultDialog?.onGameDialogClickListener = {
|
|
|
+ loadJs(it)
|
|
|
}
|
|
|
+ gameResultDialog?.show(supportFragmentManager, "gameResultDialog")
|
|
|
}
|
|
|
}
|
|
|
}
|