浏览代码

解决编辑器报错

guodong 2 年之前
父节点
当前提交
4841e8660b

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

@@ -71,7 +71,9 @@ namespace GFGGame
                     }
                     }
                     if (LauncherConfig.onDebug >= 0)
                     if (LauncherConfig.onDebug >= 0)
                     {
                     {
+#if !UNITY_EDITOR
                         ViewManager.Show(ViewName.LOG_VIEW);
                         ViewManager.Show(ViewName.LOG_VIEW);
+#endif
                     }
                     }
                     break;
                     break;
                 default:
                 default:

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

@@ -257,6 +257,9 @@ namespace GFGGame
 
 
         public static async ETTask ReqReConnectGate()
         public static async ETTask ReqReConnectGate()
         {
         {
+#if UNITY_EDITOR
+            return;
+#endif
             ViewManager.Show<ModalStatusView>("重新连接中...");
             ViewManager.Show<ModalStatusView>("重新连接中...");
             int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene);
             int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene);
             if (errorCode != ErrorCode.ERR_Success)
             if (errorCode != ErrorCode.ERR_Success)