diff --git a/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.dll b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.dll index 6c4d2a1..7a30d8e 100644 Binary files a/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.dll and b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.dll differ diff --git a/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml new file mode 100644 index 0000000..4f6efec --- /dev/null +++ b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml @@ -0,0 +1,62 @@ + + + + LightBuzz.Settings + + + + + The directory where the settings key/values will be stored. + + + + + Provides some utility methods for setting, getting and deleting application data. + + + + + Initializes the settings module. + + + + + Initializes the settings module. + + The root of the application, where the settings folder will be stored. + + + + Inserts the specified value to the specified settings key, or creates a new pair. + + The name of the setting. + The content of the setting. + + + + Retrieves the contents of the specified setting key. + + The name of the setting. + The content of the specified setting. + + + + Retrieves the contents of the specified setting key. + + The name of the setting. + The default value returned, if the key isn't found. + The content of the specified setting. + + + + Deletes the specified setting. + + The name of the setting. + + + + USE CAUTIOUSLY! This method will delete all of the Settings! + + + + diff --git a/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml.meta b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml.meta new file mode 100644 index 0000000..c57a551 --- /dev/null +++ b/LightBuzz.Settings.Unity.Demo/Assets/LightBuzz_Settings/Plugins/LightBuzz.Settings.xml.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b98f4e73b9ddc0c41a1a3dbdd209ad3a +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity.csproj b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity.csproj index 618b4dc..0001507 100644 --- a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity.csproj +++ b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity.csproj @@ -29,6 +29,7 @@ TRACE prompt 4 + bin\Release\LightBuzz.Settings.xml diff --git a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/PlayerPrefsEx.cs b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/PlayerPrefsEx.cs index b91d9bb..9e3ef31 100644 --- a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/PlayerPrefsEx.cs +++ b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/PlayerPrefsEx.cs @@ -130,7 +130,7 @@ private void Check() if (!_initialized) throw new Exception("Settings are not initialized. Call the Settings.Initialize() method from Unity's main thread."); } - public void ClearAll() + public void DeleteAll() { if (_settings != null) { diff --git a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/Settings.cs b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/Settings.cs index 863f864..79c0dba 100644 --- a/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/Settings.cs +++ b/LightBuzz.Settings.Unity/LightBuzz.Settings.Unity/Settings.cs @@ -120,9 +120,9 @@ public static void Remove(string key) /// /// USE CAUTIOUSLY! This method will delete all of the Settings! /// - public static void ClearAll() + public static void DeleteAll() { - PlayerPrefsEx.Instance.ClearAll(); + PlayerPrefsEx.Instance.DeleteAll(); } } }