Question by
axxion · Sep 11, 2017 at 09:01 AM ·
iosscorescoreboardgame center
Get user score in Game Center Scoreboard
How to get player latest score in game center scoreboard ? I make it for android but cant find a solution for ios.
Here is working android code for this issuse:
Social.localUser.Authenticate((bool success) =>
{
if (success)
{
PlayGamesPlatform.Instance.LoadScores(
GP.leaderboard_scores,
LeaderboardStart.PlayerCentered,
30,
LeaderboardCollection.Public,
LeaderboardTimeSpan.AllTime,
(data) =>
{
//get player latest score and get rank in scoreboard
t_score.text = data.PlayerScore.value.ToString();
t_rank.text = data.PlayerScore.rank.ToString();
}
);
}
});
Comment
Your answer
Follow this Question
Related Questions
Score to IOS Leaderboards Game Center 0 Answers
show score and keep score on screen until start new game? 0 Answers
How to add and track scoring in online multiplayer with UI? (Unet) 0 Answers
reload game 1 Answer
How do I add a score system? 1 Answer