public static void Reset(object target)
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 2
0
 public void Reset()
 {
     PlayerPrefs.DeleteAll();
     Debug.Log("초기화");
 }
Esempio n. 3
0
 public void DeleteData()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 4
0
 public void deleteAll()
 {
     PlayerPrefs.DeleteAll();
     Debug.Log("No more files exist, DeleteAll PPs has been run.");
 }
Esempio n. 5
0
 static void DoSomething()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 6
0
 public static void ClearPrefKey()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 7
0
 public void deleteDB()
 {
     // 원래 경고뜸
     PlayerPrefs.DeleteAll();
 }
 public void NewGameYes()
 {
     PlayerPrefs.DeleteAll();
     GoToScene();
 }
 public static void DeletePlayerPrefs()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 10
0
    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);
        }
    }
Esempio n. 11
0
    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();
        }
    }
Esempio n. 12
0
 public void ToReset()
 {
     PlayerPrefs.DeleteAll();
     ToShow();
 }
Esempio n. 13
0
 public void NewGame()
 {
     PlayerPrefs.DeleteAll();
     SceneManager.LoadScene(2);
 }
Esempio n. 14
0
 public void SceneSwitcher2()
 {
     PlayerPrefs.DeleteAll();
     SceneManager.LoadScene(0);
 }
Esempio n. 15
0
 public void OnStatsReset()
 {
     PlayerPrefs.DeleteAll();
     SceneManager.GetActiveScene();
     SceneManager.LoadScene(0);
 }
Esempio n. 16
0
 public void ClearPrefs()
 {
     PlayerPrefs.DeleteAll();
     Debug.Log("here");
 }
Esempio n. 17
0
 public void logout()
 {
     PlayerPrefs.DeleteAll();
     SceneManager.LoadScene(0);
 }
Esempio n. 18
0
 public void OnClick()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 19
0
 // Use this for initialization
 void Start()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 20
0
 public void ClearAll()
 {
     PlayerPrefs.DeleteAll();
     PlayerPrefs.Save();
 }
Esempio n. 21
0
 public static void DeleteEverything()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 22
0
 public static void clearAll()
 {
     PlayerPrefs.DeleteAll();
 }
 static void DeleteAllPlayerPrefs()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 24
0
 public void resetarPinscois()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 25
0
 public void OnDeleteSaves()
 {
     PlayerPrefs.DeleteAll();
 }
Esempio n. 26
0
 //Resetting PlayerPrefs
 void RefreshPrefs()
 {
     PlayerPrefs.DeleteAll();
     reset = true;
     gc.Reset();
 }
Esempio n. 27
0
 static public void Reset()
 {
     PlayerPrefs.DeleteAll();
     Caching.ClearCache();
 }
Esempio n. 28
0
 public void resetPlayerPrefsForPlayButton()
 {
     PlayerPrefs.DeleteAll();
     this.LevelComplete("SuburbsStart");
 }
Esempio n. 29
0
 private static void ClearPlayerPrefs()
 {
     PlayerPrefs.DeleteAll();
     Debug.Log("PlayerPrefs deleted");
 }
Esempio n. 30
0
 public void ClearPlayerPrefs()
 {
     PlayerPrefs.DeleteAll();
 }