コード例 #1
0
ファイル: TimerScript.cs プロジェクト: runvs/LD32
    private void EndThisGame()
    {
        int score = checked ((int)HighscoreScript.GetScore());

        int scoreSaved = PlayerPrefs.GetInt("highscore", -1000);

        if (scoreSaved < score)
        {
            PlayerPrefs.SetInt("highscore", score);
        }

        Application.LoadLevel("Menu");
    }