瀏覽代碼

add DoGameModeStart()

lvjincheng 3 年之前
父節點
當前提交
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();
         this.InitGameMode();
         if (debugInEditor) {
         if (debugInEditor) {
             guideFinish = true;
             guideFinish = true;
-            gameMode.Start();
+            DoGameModeStart();
         } else {
         } else {
             if (!BluetoothStatus.IsAllConnected()) {
             if (!BluetoothStatus.IsAllConnected()) {
                 GameObject view = DeviceReconnectView.Show();
                 GameObject view = DeviceReconnectView.Show();
@@ -107,7 +107,7 @@ public class GameMgr : MonoBehaviour
             }
             }
         }
         }
         guideFinish = true;
         guideFinish = true;
-        gameMode.Start();
+        DoGameModeStart();
     }
     }
 
 
     public void FinishGameRuleGuide() {
     public void FinishGameRuleGuide() {
@@ -124,6 +124,10 @@ public class GameMgr : MonoBehaviour
         CheckGuide();
         CheckGuide();
     }
     }
 
 
+    void DoGameModeStart() {
+        gameMode.Start();
+    }
+
     HashSet<Object> gamePauseLockers = new HashSet<Object>();
     HashSet<Object> gamePauseLockers = new HashSet<Object>();
     public bool gamePause {
     public bool gamePause {
         get {
         get {