- Home /
Question by
mdagreda · Oct 14, 2012 at 09:39 PM ·
socialleaderboards
How do I get a leaderboard into my game?
I have been using the Social class but when I use the documentation code
`Social.LoadScores("Leaderboard01", scores => { if (scores.Length > 0) { Debug.Log ("Got " + scores.Length + " scores"); string myScores = "Leaderboard:\n"; foreach (IScore score in scores) myScores += "\t" + score.userID + " " + score.formattedValue + " " + score.date + "\n"; Debug.Log (myScores); } else Debug.Log ("No scores loaded"); });`
I get errors about the = sign after scores needing to be a ). here is a link to the documentation Social.LoadScores.
I'm looking for any help at all. Thanks.
Comment