public T LoadAsync() { T result = new T(); string jsonString = string.Empty; if (File.Exists(path)) { jsonString = LoadConfigFromFile(path); } else { jsonString = AbTestResponseHandler.GetAsync().Result; } if (string.IsNullOrEmpty(jsonString)) { Debug.LogError("AbTest Config is not found"); } else { result = GetConfigFromJSON(jsonString); } RecreateConfig(path, result); return(result); }
public void Initialize(string host, string password) { AbTestResponseHandler.Initialize(host, Application.productName, password); }