|
|
@@ -111,21 +111,25 @@ class PlayGameActivity : BaseMVVMActivity<ActivityPlayGameBinding, PlayGameViewM
|
|
|
.withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
.navigation(mContext)
|
|
|
} else {
|
|
|
- //游戏成功/失败
|
|
|
- gameResultDialog = GameResultDialog()
|
|
|
- gameResultDialog?.setData(
|
|
|
- gameDataBean.curLevel,
|
|
|
- gameTotalScore,
|
|
|
- gameDataBean.curLevelScore,
|
|
|
- gameDataBean.isPass
|
|
|
- )
|
|
|
- gameResultDialog?.onBackHomeDialogClickListener = {
|
|
|
- RxBus.get().send(RxBusCodes.CALLQUITGAME)
|
|
|
- }
|
|
|
- gameResultDialog?.onGameDialogClickListener = {
|
|
|
- loadJs(it)
|
|
|
+ if (TextUtils.equals("A", playClass)) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ //游戏成功/失败
|
|
|
+ gameResultDialog = GameResultDialog()
|
|
|
+ gameResultDialog?.setData(
|
|
|
+ gameDataBean.curLevel,
|
|
|
+ gameTotalScore,
|
|
|
+ gameDataBean.curLevelScore,
|
|
|
+ gameDataBean.isPass
|
|
|
+ )
|
|
|
+ gameResultDialog?.onBackHomeDialogClickListener = {
|
|
|
+ RxBus.get().send(RxBusCodes.CALLQUITGAME)
|
|
|
+ }
|
|
|
+ gameResultDialog?.onGameDialogClickListener = {
|
|
|
+ loadJs(it)
|
|
|
+ }
|
|
|
+ gameResultDialog?.show(supportFragmentManager, "gameResultDialog")
|
|
|
}
|
|
|
- gameResultDialog?.show(supportFragmentManager, "gameResultDialog")
|
|
|
}
|
|
|
}
|
|
|
})
|