lvjincheng 3 лет назад
Родитель
Сommit
747722647c
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      Assets/BowArrow/Scripts/Manager/GameMgr.cs

+ 6 - 2
Assets/BowArrow/Scripts/Manager/GameMgr.cs

@@ -26,7 +26,7 @@ public class GameMgr : MonoBehaviour
         this.InitGameMode();
         if (debugInEditor) {
             guideFinish = true;
-            gameMode.Start();
+            DoGameModeStart();
         } else {
             if (!BluetoothStatus.IsAllConnected()) {
                 GameObject view = DeviceReconnectView.Show();
@@ -107,7 +107,7 @@ public class GameMgr : MonoBehaviour
             }
         }
         guideFinish = true;
-        gameMode.Start();
+        DoGameModeStart();
     }
 
     public void FinishGameRuleGuide() {
@@ -124,6 +124,10 @@ public class GameMgr : MonoBehaviour
         CheckGuide();
     }
 
+    void DoGameModeStart() {
+        gameMode.Start();
+    }
+
     HashSet<Object> gamePauseLockers = new HashSet<Object>();
     public bool gamePause {
         get {