using System.Threading.Tasks; using Newtonsoft.Json; namespace Unity.Services.Core.Configuration { class StreamingAssetsConfigurationLoader : IConfigurationLoader { public async Task GetConfigAsync() { var jsonConfig = await StreamingAssetsUtils.GetFileTextFromStreamingAssetsAsync( ConfigurationUtils.ConfigFileName); var config = JsonConvert.DeserializeObject(jsonConfig); return config; } } }