PostScore with callback in unity

PostScore on gameover and hence open leaderboard window automatically after score is submitted successfully.

Hi Lucaalex,

This code will open leaderboard window automatically,after score is posted sucesfully on id.net server.

Idnet.I.PostHighscore(YourScore, (score, postHighscoreException) => {
if (postHighscoreException == null)
{
//Callback: Post Score sucesfull here,hence show leaderboard
Idnet.I.Leaderboard();
}
});

Best Regards,
Joll

It works, thanks :smiley: .

Y8 Games