This commit is contained in:
2023-01-22 15:59:13 +05:30
parent fad3593f9f
commit 950c3b29f2
117 changed files with 20168 additions and 79 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 16180e12a1ec47a4fb2cc753af98d39e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,53 @@
using UnityEngine;
public class PlayerPrefsController : MonoBehaviour
{
#region Add
public void AddTestStrings()
{
PlayerPrefs.SetString("Runtime_String", "boing");
PlayerPrefs.SetString("Runtime_String2", "foo");
PlayerPrefs.Save();
}
public void AddTestInt()
{
PlayerPrefs.SetInt("Runtime_Int", 1234);
PlayerPrefs.Save();
}
public void AddTestFloat()
{
PlayerPrefs.SetFloat("Runtime_Float", 3.14f);
PlayerPrefs.Save();
}
#endregion
#region Remove
public void RemoveTestStrings()
{
PlayerPrefs.DeleteKey("Runtime_String");
PlayerPrefs.DeleteKey("Runtime_String2");
PlayerPrefs.Save();
}
public void RemoveTestInt()
{
PlayerPrefs.DeleteKey("Runtime_Int");
PlayerPrefs.Save();
}
public void RemoveTestFloat()
{
PlayerPrefs.DeleteKey("Runtime_Float");
PlayerPrefs.Save();
}
public void DeleteAll()
{
PlayerPrefs.DeleteAll();
PlayerPrefs.Save();
}
#endregion
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4004328c339a7cb4fb509e2e5f789688
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fba661fc32606eb498ae23fd271867b4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,12 @@
{
"name": "Unity.PlayerPrefsEditor.Samples.SampleScene",
"references": [],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": []
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7bb1abbf070c8e248939f8fd7910665f
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: