Пример #1
0
    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);
    }
Пример #2
0
 public void Exit()
 {
     MenuGame.ReportScore(PlayerPrefs.GetInt("MaxScore", MaxScore));
     SceneManager.LoadScene("MenuGame");
     //Application.Quit();
 }