从Google plus个人资料获取经验积分和级别,或从Google plus个人资料获取数据 [英] Get experience points and level from google plus profile or Get Data from google plus profile

查看:260
本文介绍了从Google plus个人资料获取经验积分和级别,或从Google plus个人资料获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的游戏中使用Google Play游戏服务从Google排行榜获取数据和排行榜分数。



我在排行榜配置文件中注意到此屏幕。

>



正如你所看到的名字,以及关卡和XP分。



我想知道有没有办法获得这些数据,以便我可以在我的自定义排行榜中显示它。



我已经获得了名称和个人资料图片等数据。

找到一种方法来获取这个游戏数据。



建议我一些想法。

解决方案

为了获得玩家的经验积分和等级,首先你必须获取当前登录游戏的本地玩家。为此,您应该使用GPGS sdk的玩家管理器来获取包含所需信息的玩家对象。
请检查以下链接:
玩家API参考


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.

解决方案

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

这篇关于从Google plus个人资料获取经验积分和级别,或从Google plus个人资料获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆