Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Google Play Services Unity插件展示排行榜_Android_Unity3d_Google Play Services_Google Play Games - Fatal编程技术网

Android Google Play Services Unity插件展示排行榜

Android Google Play Services Unity插件展示排行榜,android,unity3d,google-play-services,google-play-games,Android,Unity3d,Google Play Services,Google Play Games,我正在用Unity为Android和iOS构建一个游戏,我已经导入了以下内容: 我已经在谷歌游戏机上创建了这个游戏,我看到了我的排行榜。然而,并没有上传任何数据——即使我已经运行了好几次代码——第一次是大约4天前。但仍然没有数据 我能够成功登录 我也无法显示排行榜,我希望如此 if(GUI.Button(new Rect (Screen.width/2 - 105*u, Screen.height/3 + 450*u, 210*u, 210*u), "Score")){

我正在用Unity为Android和iOS构建一个游戏,我已经导入了以下内容:

我已经在谷歌游戏机上创建了这个游戏,我看到了我的排行榜。然而,并没有上传任何数据——即使我已经运行了好几次代码——第一次是大约4天前。但仍然没有数据

我能够成功登录

我也无法显示排行榜,我希望如此

if(GUI.Button(new Rect (Screen.width/2 - 105*u, Screen.height/3 + 450*u, 210*u, 210*u), "Score")){
                // Activate the Google Play Games platform
                PlayGamesPlatform.DebugLogEnabled = true;
                PlayGamesPlatform.Activate();
                Social.localUser.Authenticate((bool success) => {});
                Social.ReportScore(PlayerPrefs.GetInt ("best"), "CxxxxQ", (bool s) => {});
                ((PlayGamesPlatform) Social.Active).ShowLeaderboardUI("CxxxxQ");
}

您是否检查了ReportScore方法中的布尔回调。您可能无法正确报告分数。是你的测试帐户被添加到谷歌游戏控制台中吗?你刚才说的一切。结果发现它与其他插件冲突。我也是。希望不是关于onGUI的问题。它可能只在活动开始或更新时显示,但我还没有测试它。哪个插件冲突,如何冲突?@user2947684它与哪个插件冲突??
using google.service.game;
GoogleGame.Instance().login (true, false);
GoogleGame.Instance().showLeaderboards();