I have a very preliminar support of leaderboards in one of my games.
You first have to query the leaderboard. In example:
var query=new LeaderboardQuery();
afterwards you have to manually query statsManager with DoWork (in example, in every Update cycle, or through a Thread) which returns you different events.
Try/catch it, as DoWork can throw exceptions.
foreach (var ev in eventList)
var args=ev.EventArgs as LeaderboardResultEventArgs;
if (args!=null && args.Result!=null)
Inside processLeaderboardResults, you do a
foreach (var row in result.Rows)
and you have each leaderboard entry in those rows. row.GamerTag, row.Rank , ...
What you do with those (i.e. put them in a list to display them ) it's all up to you.
p.s. why the h... I can't format the code?