C# 为什么谷歌在Unity中玩游戏不能正常工作?

C# 为什么谷歌在Unity中玩游戏不能正常工作?,c#,unity3d,google-play-services,google-play-games,C#,Unity3d,Google Play Services,Google Play Games,我在Assets/plugins/Android中有这些文件: 这些文件正确吗 当我单击我的按钮排名时,我看到我的手机如何加载Google Play Games屏幕(典型的绿色屏幕)。 但是我不能用我的帐户登录,也看不到排行榜 这就是我尝试过的: public class BotonRanking : MonoBehaviour { // Use this for initialization void Start () { clickar(); } // Update is ca

我在Assets/plugins/Android中有这些文件:

这些文件正确吗

当我单击我的按钮
排名
时,我看到我的手机如何加载Google Play Games屏幕(典型的绿色屏幕)。
但是我不能用我的帐户登录,也看不到排行榜

这就是我尝试过的:

public class BotonRanking : MonoBehaviour {

// Use this for initialization
void Start () {
    clickar();
}

// Update is called once per frame
void Update () {

}

public void clickar() {
    if (Social.localUser.authenticated) {
        ((PlayGamesPlatform)Social.Active).ShowLeaderboardUI ("APICODE");
    } else {
        Social.localUser.Authenticate ((bool success) => {  });
    }
}
}

另一个脚本:

//SEND TO GOOGLE PLAY GAMES MY SCORE
        Social.ReportScore(contador, "APICODE", (bool success) => {});

您是否调用了PlayGamesPlatform.Activate();在你的应用程序中??你是否“将游戏资源粘贴到插件设置对话框中”?是的,但现在,我在三星galaxy mini中执行我的应用程序,我可以看到排行榜,但在我的华为p7中,我无法。。。为什么?我在两个手机和同一个帐户上更新了谷歌游戏。好的,我解决了我的问题,谢谢。