public static void ReadTestSettings() { string json = File.ReadAllText(Application.dataPath + "/StreamingAssets/settings.txt"); _instance = JsonConvert.DeserializeObject <Settings>(json, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.None }); LoaderAdapter.Init(new ApiLoader()); }
public static void CreateStorageSettings(string folder) { //string outFolder = Application.dataPath + "/tempUnpacked"; LogManager.GetCurrentClassLogger().Info($"Create storage settings. Path = {folder}"); _instance = new Settings { StoragePath = folder, HighlightEnabled = true, Language = CultureInfo.CurrentCulture.TwoLetterISOLanguageName }; LoaderAdapter.Init(new StorageLoader()); }
public static void CreateDebugSettings(string path) { _instance = new Settings { DebugFolder = path, HighlightEnabled = true, TouchHapticsEnabled = true, GrabHapticsEnabled = true, UseHapticsEnabled = true, Language = LanguageManager.DefaultLanguage }; LoaderAdapter.Init(new ApiLoader()); }