예제 #1
0
    public bool EnterHighScore(float score)
    {
        bool  isNewHighScore = false;
        float highScore      = PlayerPrefsFast.GetFloat(SharedResources.HighScoreKey, 0);

        if (score > highScore)
        {
            isNewHighScore = true;
            PlayerPrefsFast.SetFloat(SharedResources.HighScoreKey, score);
            PlayerPrefsFast.Flush();

            FacebookManager.Instance.PostHighScore((uint)score);
        }

        return(isNewHighScore);
    }