public void Restart() { MenuGame.ReportScore(PlayerPrefs.GetInt("MaxScore", MaxScore)); Debug.Log(PlayerPrefs.GetInt("MaxScore", MaxScore)); //PlayerPrefs.SetInt("deadCounter", deadCounter); deadCounter++; Debug.Log(deadCounter); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }
public void Exit() { MenuGame.ReportScore(PlayerPrefs.GetInt("MaxScore", MaxScore)); SceneManager.LoadScene("MenuGame"); //Application.Quit(); }