为什么Unity中的Google Play游戏无法正常运行?

时间:2017-04-04 11:46:43

标签: c# unity3d google-play-services google-play-games

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

Files

这些文件是否正确?

当我点击我的按钮Ranking时,我会看到手机如何加载Google Play游戏屏幕(典型的绿色屏幕)。
但是我无法使用我的帐户登录,而且无法看到排行榜。

这就是我的尝试:

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) => {});

0 个答案:

没有答案
相关问题