谷歌,玩游戏 - 实现成就和排行榜团结,Android的问题 [英] Issues implementing achievements and leader boards Unity, Android - Google-Play-Games

查看:350
本文介绍了谷歌,玩游戏 - 实现成就和排行榜团结,Android的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于做了一个游戏,我很高兴地推Android商店和我都记录下来,除了包装像执行领导委员会和成就一些小细节。

I've finally made a game that I am happy to push on the android store and I have everything down packed except for a few minor details like implementing the leader board and achievements.

现在,我已经按照由布鲁诺和丹制作的视频教程,并已经能够签署与多种设备和多个帐户,但没有别的似乎工作。

Now, I've followed the tutorial on the video produced by Bruno and Dan and have been able to sign in with multiple devices and multiple accounts, but nothing else seems to work.

我使用的是统一的,并提供了,并告诉下载该插件/ SDK。

I'm using unity and the plugin / sdk that was provided and told to download.

这个事情我遇到麻烦甚至获得的成就和排行榜。我用这code这是在视频:

The things I am having trouble with is even getting the achievements and leader boards. I am using this code which was in the video:

// post score 12345 to leaderboard ID "Cfji293fjsie_QA")
        Social.ReportScore(12345, "(I have my leader board code here but am masking it for safety)", (bool success) => {
            // handle success or failure
        });

在这code我有它基本上设置的时刻与测试,如果GUI.Button推,玩家将发送12345分的领先榜。然后,一旦做到这一点,有另一种按钮,它可以打开ShowLeaderBoardUI函数也被在视频定

In that code I have it basically setup for the moment with testing that if a GUI.Button is pushed, the player will send the score 12345 to the leader board. Then once that is done, there is another button that can open the ShowLeaderBoardUI function that was also given in the video.

曾经在我的手机上的游戏,分数不会显示出来,或在董事会的领导者本身,一旦$ P $要么pssing按钮。

Once in the game on my phone, the scores wont show up, or the leader board itself once pressing the button either.

我是不是做错了什么?我不知道我是否需要包括别的,我甚至没有输入我的分数变量进入领先榜又用于测试目的。

Am I doing something wrong? I'm not sure if I need to include anything else and I'm not even inputting my variables of score into the leader board yet for testing purposes.

如果您需要了信息让我知道。

If you need anymore information let me know.

我对谷歌游戏的Beta版Play商店的应用程序说出版,游戏服务说已发布。我已经把应用程序的游戏服务使用正确的OUATH 2.0,用正确的应用程序ID。所有的成就和排行榜说出版。我的两个电子邮件帐户链接到游戏服务。

I have the game in Beta on the Google Play Store with the application saying "Published", the Game Services say "Published". I have linked the app to the Game Services with the correct OUATH 2.0, with the correct App ID. All achievements and leader boards say "Published". Both of my email accounts are linked to the Game Services.

我只是不知道,我已经错了,为什么我甚至不能ShowLeaderboardUI甚至张贴的高分。

I'm just not sure where I have gone wrong and why I can't even ShowLeaderboardUI or even post a score.

也就是有办法在计算机上查看的排行榜和成就,结合在一个电话?还是我需要在手机上进行检查?

Also is there a way to view the leader boards and achievements on a computer as apposed to a phone? or do I need to be on the phone to check them?

谢谢

克里斯

编辑:忘了,包括我可以登录并拥有所有图形的常规谷歌播放的标志,它的招牌细

Forgot to include that I can sign in and have all of the regular Google Play sign in graphics and it's signs in fine.

EDIT2:忘了提,游戏处于测试版的谷歌Play商店

Forgot to mention that the game is in Beta in the Google Play Store.

推荐答案

鉴定本地用户之前添加以下语句。

Add the following statement before Authenticating the local user.

PlayGamesPlatform.Activate();

这将解决您的问题。

这篇关于谷歌,玩游戏 - 实现成就和排行榜团结,Android的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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