When i would call following twice:
scoreBoardService.SaveUserScore(level, userName, score, new SaveUserScoreCallBack());
Then it would add the same user twice in the leaderboard but for our game i would like to ensure that the same user only exists once in the leaderboard. Basically simply updating his score.
i know that there is:
scoreBoardService.GetLastScoreByUser(level, userName, new LastScoreByUserCallBack());
So i would query first "GetLastScoreByUser" and if i get a return value from that i would change that score.But i am unsure how this callback system works. Where would use the "GetLastScoreByUser" function?
In the SaveUserScoreCallBack class?
Any example for this case would be highly appreciated.