Ejemplo n.º 1
0
    public void EndGameWon()
    {
        int    jump = PlayerPrefs.GetInt("Jump");
        int    nut  = PlayerPrefs.GetInt("Nuts");
        float  time = PlayerPrefs.GetFloat("Time");
        string name = PlayerPrefs.GetString("PlayerName");

        highscore.AddHighScoreEntry(time, jump, name);
        SceneManager.LoadScene("StasScene");
    }