| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 
							- using LitJson;
 
- using UnityEngine;
 
- using UnityEngine.Networking;
 
- namespace GFGGame
 
- {
 
-     public class LauncherConfig
 
-     {
 
-         public enum EnumNetType { DEV, LOCAL }
 
-         public static EnumNetType netType = EnumNetType.LOCAL;
 
-         public const int HTTP_GET_TIME_OUT = 3;
 
-         public const int HTTP_POST_TIME_OUT = 15;
 
-         public static string SOUND_KEY = "sound";
 
-         public static string MUSIC_KEY = "music";
 
-         public const string SQL_FILE_NAME = "excelConfig.sqlite.bytes";
 
-         public static string CDN_ROOT;
 
-         public static string loginApiUrl;
 
-         public static string gameApiUrl;
 
-         //public static string CDN_ROOT = "http://10.108.64.58/";
 
-         public static bool ILRuntimeMode;
 
-         public static void Init()
 
-         {
 
-             Debug.Log($"identifier: {Application.identifier}");
 
- #if PT_DEV
 
-             //ÍâÍødev°æ±¾
 
-             netType = EnumNetType.DEV;
 
-             cfgName = "cfg_dev";
 
- #else
 
-             netType = EnumNetType.LOCAL;
 
-             string cfgName = "cfg_local";
 
- #endif
 
-             string url = $"http://39.99.144.134/res_dev/platform/{cfgName}.json";
 
-             
 
-             HttpTool.Instance.Get(url, "", (string data) => {
 
-                 ResultHandler(data);
 
-             });
 
-             Debug.Log($"loginApiUrl {loginApiUrl} netType {netType}");
 
-         }
 
-         private static void ResultHandler(string data)
 
-         {
 
-             var result = JsonMapper.ToObject<Result>(data);
 
-             CDN_ROOT = result.cdnRoot;
 
-             loginApiUrl = result.loginApiUrl;
 
-             Debug.Log($"ptcfg \n{data}");
 
-             LauncherView.Instance.SetDesc("»ñÈ¡°æ±¾ÐÅÏ¢...");
 
-             VersionController.Instance.Init();
 
-         }
 
-         private struct Result
 
-         {
 
-             public string cdnRoot;
 
-             public string loginApiUrl;
 
-         }
 
-     }
 
- }
 
 
  |