how do i get the lowest rank in my leaderboard so i can only load my scene if my score is greater the the lowest rank otherwise it bypasses it?
Viewing post in Leaderboard Creator comments
Something along the lines of this...
void GetAllEntries() {
Leaderboards.YourLeaderboard.GetEntries(
isAscending: true,
callback: OnEntriesLoaded(is passed a list of "Entry")
errorCallback: OnError(is passed a string with error)
);
}
void OnEntriesLoaded(Entry[] entries) {
if (yourScore > entries[0]) {
LoadScene();
}
}
void OnError(string error) {
Debug.Log(error);
}