I want load score for google Play

Hello i’m study unity engine.
But i have little problem…

I want show my Game main, for googlePlay All Score load.
But this problem, i don’t have any information(use internet, github, unity script menual…).
so i write here…

please Solution…
:wink:


p.s. I think maybe this script use?
but alway debug log message : length 0 or no score

	PlayGamesPlatform.Instance.LoadScores (TestLeaderBoardsID,scores => {
		if (scores.Length > 0) {
			Debug.Log ("Got " + scores.Length + " scores");
			ConsolePrint.text="Got " + scores.Length + " scores";
			string myScores = "Leaderboard:

";
TestScorePrint.text= "Leaderboard:
";
foreach (IScore score in scores)
myScores += " " + score.userID + " " + score.formattedValue + " " + score.date + "
";
Debug.Log (myScores);
ConsolePrint.text=myScores;
}
else{
Debug.Log (“No scores loaded”);
Debug.Log("ScoreSize : “+scores.Length);
TestScorePrint.text= “No Scores loaded”+”
ScoreSize : "+scores.Length;
}
});


Until the day I am writing the answer the LoadScore() is there but not implemented yet.

See the following link - On Date 11-Dec-2014

https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs

So it always returns 0 until someone (may be you can contribute) implement it.

If you are ok, then use,

Social.ShowLeaderboardUI();