Exemplo n.º 1
0
    public void OnDeath()
    {
        isDead = true;

        //saves highscore to computer registry
        if (PlayerPrefs.GetFloat("Highscore") < level)
        {
            PlayerPrefs.SetFloat("Highscore", level);              //key-value pair
        }
        deathMenu.ToggleScore(level);
    }