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