void OnGUI()
    {
        if (!EditorPrefs.HasKey("settingsSavingEnabled"))
        {
            EditorPrefs.SetBool("settingsSavingEnabled", false);
            EditorPrefs.SetBool("minigameSavingEnabled", false);
        }
        EditorPrefs.SetBool("settingsSavingEnabled", EditorGUILayout.Toggle("Enable Settings Saving", EditorPrefs.GetBool("settingsSavingEnabled")));
        EditorPrefs.SetBool("minigameSavingEnabled", EditorGUILayout.Toggle("Enable Minigame Saving", EditorPrefs.GetBool("minigameSavingEnabled")));

        SaveSettings.settingsSavingEnabled = EditorPrefs.GetBool("settingsSavingEnabled");
        SaveSettings.minigameSavingEnabled = EditorPrefs.GetBool("minigameSavingEnabled");

        using (new EditorGUI.DisabledScope(!FileSaveUtil.Exists("playerSettings"))) {
            if (GUILayout.Button("Delete Player Settings"))
            {
                FileSaveUtil.Delete("playerSettings");
            }
        }

        using (new EditorGUI.DisabledScope(!FileSaveUtil.Exists("minigameMasterList"))) {
            if (GUILayout.Button("Delete Minigame Saves"))
            {
                FileSaveUtil.Delete("minigameMasterList");
            }
        }
    }
    void OnGUI()
    {
        if (EditorApplication.isPlaying && !_playing)
        {
            PersistentDataManager.settingsSavingEnabled = settingsSavingEnabled;
            PersistentDataManager.minigameSavingEnabled = minigameSavingEnabled;
        }
        PersistentDataManager.settingsSavingEnabled = EditorGUILayout.Toggle("Enable Settings Saving", PersistentDataManager.settingsSavingEnabled);
        PersistentDataManager.minigameSavingEnabled = EditorGUILayout.Toggle("Enable Minigame Saving", PersistentDataManager.minigameSavingEnabled);

        settingsSavingEnabled = PersistentDataManager.settingsSavingEnabled;
        minigameSavingEnabled = PersistentDataManager.minigameSavingEnabled;

        using (new EditorGUI.DisabledScope(!FileSaveUtil.Exists("playerSettings"))) {
            if (GUILayout.Button("Delete Player Settings"))
            {
                FileSaveUtil.Delete("playerSettings");
            }
        }

        using (new EditorGUI.DisabledScope(!FileSaveUtil.Exists("minigameMasterList"))) {
            if (GUILayout.Button("Delete Minigame Saves"))
            {
                FileSaveUtil.Delete("minigameMasterList");
            }
        }
    }