Get experience points and level from google plus profile or Get Data from google plus profile

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 13:16:53

问题


I am using google play game services in my game to get data and leaderboard scores from google leaderboard.

I noticed this screen in the leaderboard profile.

As you can see the name , and level and XP points.

I was wondering is there a way to get these data so that I can show it in my custom leaderboard.

I already got data like name and profile image.

but I couldnt find a way to get this game data.

Suggest me some ideas.


回答1:


For getting player's experience points and level ,first you have to fetch a local player that is currently signed in with your game.For this you should use Player Manager of the GPGS sdk to get a Player object that contains your required information. Please check this link: Player API Reference



来源:https://stackoverflow.com/questions/27499675/get-experience-points-and-level-from-google-plus-profile-or-get-data-from-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!