소스 검색

解决编辑器报错

guodong 2 년 전
부모
커밋
4841e8660b
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Controller/LogController.cs
  2. 3 0
      GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

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

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

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

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