Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Get user score in Game Center Scoreboard

$
0
0
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(); } ); } });

Viewing all articles
Browse latest Browse all 4709

Trending Articles