Browse Source

修改BUG

lan 1 year ago
parent
commit
95b395c2fc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      assets/script/mgrs/LocalMsgManager.ts

+ 5 - 0
assets/script/mgrs/LocalMsgManager.ts

@@ -129,6 +129,7 @@ export class LocalMsgManager {
     }
     async initTestGame() {
         let firstGame = Data.game.testSemeGames[Data.game.testGameIndex]
+        Data.game.semeID = firstGame.semeID
         Data.game.gameID = firstGame.gameID
         Data.game.partID = firstGame.partID
         Mgr.ui.closeAll()
@@ -141,6 +142,10 @@ export class LocalMsgManager {
                 Data.game.semeBundle = await ccUtils.getBundleAsync(GAME_TYPE[Data.game.curGameType] + 'Seme')
                 Mgr.ui.show(UI.ChineseTestGameUI)
                 break
+            case GAME_TYPE.gamePinyin:
+                Mgr.ui.show(UI.PinyinTestGameBgUI)
+                Mgr.ui.show(UI.GameUI)
+                break
             default:
                 break
         }