Ejemplo n.º 1
0
    public void ButtonReset()
    {
        PlayerPrefs.DeleteAll();
        ObscuredPrefs.DeleteAll();

        EventManager.OnResetAll();
    }
    void OnGUI()
    {
        if (GUILayout.Button("Delete All PlayerPref"))
        {
            ObscuredPrefs.DeleteAll();
            PlayerPrefs.DeleteAll();
        }

        if (Master.Stats == null)
        {
            return;
        }

        EditorGUILayout.BeginHorizontal();
        Master.Stats.Gem = int.Parse(EditorGUILayout.TextField("Gem", Master.Stats.Gem.ToString()));
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        Master.Stats.Star = int.Parse(EditorGUILayout.TextField("Star", Master.Stats.Star.ToString()));
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        Master.Stats.Energy = int.Parse(EditorGUILayout.TextField("Energy", Master.Stats.Energy.ToString()));
        EditorGUILayout.EndHorizontal();

        if (Master.Gameplay != null)
        {
            EditorGUILayout.BeginHorizontal();
            Master.Gameplay.gold = int.Parse(EditorGUILayout.TextField("Gold", Master.Gameplay.gold.ToString()));
            EditorGUILayout.EndHorizontal();
        }

        EditorGUILayout.BeginHorizontal();
        //Master.LevelData.lastLevel = int.Parse(EditorGUILayout.TextField("Last Level", Master.LevelData.lastLevel.ToString()));
        Master.LevelData.SetLastLevel(int.Parse(EditorGUILayout.TextField("Last Level", Master.LevelData.lastLevel.ToString())));
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        //Master.LevelData.lastLevel = int.Parse(EditorGUILayout.TextField("Last Level", Master.LevelData.lastLevel.ToString()));
        Master.LevelData.lastLevelHard = int.Parse(EditorGUILayout.TextField("Last Hard Level", Master.LevelData.lastLevelHard.ToString()));
        EditorGUILayout.EndHorizontal();
    }
Ejemplo n.º 3
0
 //Zum initialisieren
 void LateUpdate()
 {
     ObscuredPrefs.DeleteAll();
     PlayerPrefs.DeleteAll();
 }
Ejemplo n.º 4
0
 public void DeleteAll()
 {
     ObscuredPrefs.DeleteAll();
 }
Ejemplo n.º 5
0
 public void ResetData()
 {
     ObscuredPrefs.DeleteAll();
 }