void BackToMainMenu() { PlayerPrefs.SetInt("winMode", windowMode); PlayerPrefs.SetInt("Resolution", Resolution); PlayerPrefs.SetFloat("SFX", SFX.value); PlayerPrefs.SetFloat("Music", Music.value); PlayerPrefs.SetFloat("ScreenWidth", GlobalVariable.GetScreenWidth()); PlayerPrefs.SetFloat("ScreenHeight", GlobalVariable.GetScreenHeight()); SceneManager.LoadScene("MainMenu"); }