- Home /
This question was
closed Feb 27, 2015 at 01:26 AM by
meat5000 for the following reason:
Duplicate Question
Question by
Gul1 · Dec 24, 2014 at 08:12 AM ·
leaderboard
How to load best score from leaderboard
I am using Git-hub plugin for leader-board.I have successfully posted score but now i have to get best score from leader-board to show in game-play. I am using this code but it shows nothing.Please guide me.
ILeaderboard leaderboard;
leaderboard = Social.CreateLeaderboard();
leaderboard.id = "CgkIlOyC3sIDEAIQAA";
eaderboard.LoadScores (result => {
Debug.Log("Received " + leaderboard.scores.Length + " scores");
foreach (IScore score in leaderboard.scores)
myScores=score.formattedValue;
Debug.Log(myScores);
});
Comment
Hey Friend ! If you are using this for ios then on itunes I think there is an option to show best score. In this way you can only see the best scores only.
Your question isn't clear. Please link to the $$anonymous$$erboard code you're talking about and tell us what is and what is not working.