using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEngine.SceneManagement; public class DeleteAllSave : MonoBehaviour { //[MenuItem("Window/Delete PlayerPrefs (All)")] public GameObject confirmationPanel; public void DeleteAllPlayerPrefs() { PlayerPrefs.DeleteAll(); PlayerPrefs.Save(); SceneManager.LoadScene("Screen Menu"); } public void ShowResetConfirmation() { confirmationPanel.SetActive(true); } public void ConfirmReset() { DeleteAllPlayerPrefs(); } public void cancelReset() { confirmationPanel.SetActive(false); } }