Exemple #1
0
    void Start()
    {
        score     = PlayerPrefs.GetInt("Score", score);
        text.text = "Score" + ": " + score.ToString();
        int leaderInt = 0;

        leaderInt = PlayerPrefs.GetInt("Score", 0);
        long leaderScore = Convert.ToInt64(leaderInt);

        playGamesScript.PostToLeaderBoard(leaderScore);
        Debug.Log(leaderScore);
    }