Browse Source

网络配置

guodong 3 years ago
parent
commit
a37aae2854

+ 5 - 3
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/ConstValue.cs

@@ -1,8 +1,10 @@
-namespace ET
+using GFGGame;
+namespace ET
 {
 {
     public static class ConstValue
     public static class ConstValue
     {
     {
-        public const string LoginAddress = "10.108.64.190:10005";
-        //public const string LoginAddress = "127.0.0.1:10005";
+        //public static string LoginAddress = "10.108.64.190:10005";
+        public static string LoginAddress = LauncherConfig.loginApiUrl;
+        //public static string LoginAddress = "127.0.0.1:10005";
     }
     }
 }
 }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/HotUpdateEntry.cs

@@ -38,7 +38,7 @@ namespace GFGGame.HotUpdate
             //sqlite
             //sqlite
             SqliteController.Instance.Init(false, ResPathUtil.SQLITE_FILE_PATH);
             SqliteController.Instance.Init(false, ResPathUtil.SQLITE_FILE_PATH);
             //开始游戏
             //开始游戏
-            GameController.Start();
+            GameController.Start().Coroutine();
             Debug.Log("HotUpdateEntry Start completed");
             Debug.Log("HotUpdateEntry Start completed");
         }
         }