コード例 #1
0
    public void onDeath()
    {
        isDead = true;

        if (points > (int)PlayerPrefs.GetFloat("Highscore"))
        {
            PlayerPrefs.SetFloat("Highscore", points);
        }

        deathMenu.triggerDeathMenu((int)points);
    }