static PlayerPrefsHelper() { if (Runtime.IsOSXEditor) { string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/Library/Preferences/" + "unity." + PlayerSettings.companyName + "." + PlayerSettings.productName + ".plist"; if (!File.Exists(path)) { Debug.LogError("Player prefs path doesn't exist: " + path); return; } s_prefs = new Preferences(path); s_prefs.Load(); } }
internal static void Reload() { s_prefs.Load(); }