public static void Reset(object target) { PlayerPrefs.DeleteAll(); }
public void Reset() { PlayerPrefs.DeleteAll(); Debug.Log("초기화"); }
public void DeleteData() { PlayerPrefs.DeleteAll(); }
public void deleteAll() { PlayerPrefs.DeleteAll(); Debug.Log("No more files exist, DeleteAll PPs has been run."); }
static void DoSomething() { PlayerPrefs.DeleteAll(); }
public static void ClearPrefKey() { PlayerPrefs.DeleteAll(); }
public void deleteDB() { // 원래 경고뜸 PlayerPrefs.DeleteAll(); }
public void NewGameYes() { PlayerPrefs.DeleteAll(); GoToScene(); }
public static void DeletePlayerPrefs() { PlayerPrefs.DeleteAll(); }
void OnGUI() { if (GUILayout.Button("Create Wall")) { Manage.Instance.Create_Wall(); } if (GUILayout.Button("Create Stick")) { Manage.Instance.Create_Stick(); } if (GUILayout.Button("Create Ball")) { Manage.Instance.Create_Ball(); } if (GUILayout.Button("Create Star")) { Manage.Instance.Create_Star(); } if (GUILayout.Button("Save Config")) { string _config = Manage.Instance.Sava_Config(); string _path = EditorUtility.SaveFilePanel("Save Config", "Assets/Resources/Config", "", "txt"); Debug.LogError(_path); /*if (File.Exists(_path)) * { * File.Delete(_path); * Debug.LogError("Delete:" + _path); * }*/ StreamWriter _StreamWriter = File.CreateText(_path); _StreamWriter.Write(_config); _StreamWriter.Close(); UnityEditor.AssetDatabase.Refresh(); } if (GUILayout.Button("Load Config")) { string _path = EditorUtility.OpenFilePanel("Load Config", "Assets/Resources/Config", "txt"); StreamReader _StreamReader = File.OpenText(_path); string _config = _StreamReader.ReadToEnd(); Manage.Instance.Create_Game(_config); } if (GUILayout.Button("isKinematic")) { Rigidbody2D[] _Rigidbody2D = GameObject.FindObjectsOfType <Rigidbody2D>(); for (int i = 0; i < _Rigidbody2D.Length; i++) { _Rigidbody2D[i].isKinematic = !_Rigidbody2D[i].isKinematic; } } if (GUILayout.Button("Delete Game")) { Manage.Instance.Delete_Game(); } if (GUILayout.Button("Delete PlayerPrefs")) { PlayerPrefs.DeleteAll(); } if (GUILayout.Button("CaptureScreenshot")) { Application.CaptureScreenshot(Random.Range(1, 1000) + ".png"); } if (GUILayout.Button("Test")) { Wall[] Wall = GameObject.FindObjectsOfType <Wall>(); Debug.LogError(Wall.Length); } }
void OnGUI() { EditorGUILayout.LabelField("Player Prefs Editor", EditorStyles.boldLabel); EditorGUILayout.LabelField("by RomejanicDev"); EditorGUILayout.Separator(); fieldType = (FieldType)EditorGUILayout.EnumPopup("Key Type", fieldType); setKey = EditorGUILayout.TextField("Key to Set", setKey); setVal = EditorGUILayout.TextField("Value to Set", setVal); if (error != null) { EditorGUILayout.HelpBox(error, MessageType.Error); } if (GUILayout.Button("Set Key")) { if (fieldType == FieldType.Integer) { int result; if (!int.TryParse(setVal, out result)) { error = "Invalid input \"" + setVal + "\""; return; } PlayerPrefs.SetInt(setKey, result); } else if (fieldType == FieldType.Float) { float result; if (!float.TryParse(setVal, out result)) { error = "Invalid input \"" + setVal + "\""; return; } PlayerPrefs.SetFloat(setKey, result); } else { PlayerPrefs.SetString(setKey, setVal); } PlayerPrefs.Save(); error = null; } if (GUILayout.Button("Get Key")) { if (fieldType == FieldType.Integer) { setVal = PlayerPrefs.GetInt(setKey).ToString(); } else if (fieldType == FieldType.Float) { setVal = PlayerPrefs.GetFloat(setKey).ToString(); } else { setVal = PlayerPrefs.GetString(setKey); } } if (GUILayout.Button("Delete Key")) { PlayerPrefs.DeleteKey(setKey); PlayerPrefs.Save(); } if (GUILayout.Button("Delete All Keys")) { PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); } }
public void ToReset() { PlayerPrefs.DeleteAll(); ToShow(); }
public void NewGame() { PlayerPrefs.DeleteAll(); SceneManager.LoadScene(2); }
public void SceneSwitcher2() { PlayerPrefs.DeleteAll(); SceneManager.LoadScene(0); }
public void OnStatsReset() { PlayerPrefs.DeleteAll(); SceneManager.GetActiveScene(); SceneManager.LoadScene(0); }
public void ClearPrefs() { PlayerPrefs.DeleteAll(); Debug.Log("here"); }
public void logout() { PlayerPrefs.DeleteAll(); SceneManager.LoadScene(0); }
public void OnClick() { PlayerPrefs.DeleteAll(); }
// Use this for initialization void Start() { PlayerPrefs.DeleteAll(); }
public void ClearAll() { PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); }
public static void DeleteEverything() { PlayerPrefs.DeleteAll(); }
public static void clearAll() { PlayerPrefs.DeleteAll(); }
static void DeleteAllPlayerPrefs() { PlayerPrefs.DeleteAll(); }
public void resetarPinscois() { PlayerPrefs.DeleteAll(); }
public void OnDeleteSaves() { PlayerPrefs.DeleteAll(); }
//Resetting PlayerPrefs void RefreshPrefs() { PlayerPrefs.DeleteAll(); reset = true; gc.Reset(); }
static public void Reset() { PlayerPrefs.DeleteAll(); Caching.ClearCache(); }
public void resetPlayerPrefsForPlayButton() { PlayerPrefs.DeleteAll(); this.LevelComplete("SuburbsStart"); }
private static void ClearPlayerPrefs() { PlayerPrefs.DeleteAll(); Debug.Log("PlayerPrefs deleted"); }
public void ClearPlayerPrefs() { PlayerPrefs.DeleteAll(); }