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…
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;
}
});