Before starting, make sure to setup a high score table, see the high scores management page.
// "LEADERBOARD" is the Table name Idnet.I.Leaderboard("LEADERBOARD");
var exampleScore = 1001 + Random.Range(0, 1000); // "LEADERBOARD" is the Table name Idnet.I.PostHighscore(exampleScore, "LEADERBOARD");
var exampleScore = 1001 + Random.Range(0, 1000); // "LEADERBOARD" is the Table name Idnet.I.PostHighscore(exampleScore, "LEADERBOARD", (score, postHighscoreException) => { if (postHighscoreException == null) { Debug.Log("Score posted succesfully,open leaderboard window here"); } else { Debug.Log("Posting score failed " + postHighscoreException); } });
//Let IDnet know that its a timer leaderboard. Idnet.I.TimerLeaderboard=true; // "LEADERBOARD" is the Table name Idnet.I.Leaderboard("LEADERBOARD");
//Let IDnet know that its a timer leaderboard. Idnet.I.TimerLeaderboard=true; //Time posted should be in "Milliseconds",here "127676698" is a milliseconds time. var exampleTime = 127676698; // "LEADERBOARD" is the Table name Idnet.I.PostHighscore(exampleScore, "LEADERBOARD");