using System.Collections; using ET; using LitJson; using UnityEngine; namespace GFGGame { public class GameConfig { public static string LoginAddress; public static string PlatformName; public static int showGM; public static void InitData(string json) { ET.Log.Debug($"gamecfg \n{json}"); var result = JsonMapper.ToObject(json); LoginAddress = result.loginApiUrl; //LoginAddress = "10.108.64.127:10005"; PlatformName = result.platformName; showGM = int.Parse(result.showGM); } private struct Result { public string loginApiUrl; public string platformName; public string showGM; } } }