void Start() { prefs.OnPrefenceChanged += Test; prefs.AddPreference(TEST_PREF, 1); Debug.Log(prefs.GetPreferenceValue(TEST_PREF)); prefs.Save(PreferenceManager.FileType.XML); prefs.DeleteAll(); prefs.Load("Preferences.xml", PreferenceManager.FileType.XML); Debug.Log(prefs.GetPreferenceValue(TEST_PREF)); }