public void LoadScores(string leaderboardID, Action<IScore[]> callback)
{
if (this.VerifyUser())
{
foreach (Leaderboard leaderboard in this.m_Leaderboards)
{
if (leaderboard.id == leaderboardID)
{
this.SortScores(leaderboard);
if (callback != null)
{
callback(leaderboard.scores);
}
return;
}
}
Debug.LogError("Leaderboard not found");
if (callback != null)
{
callback(new Score[0]);
}
}
}