【发布时间】:2021-03-12 13:49:25
【问题描述】:
我添加了一个 google 登录按钮,并且我已经正确实现了所有登录密钥和证书 所以当我点击我的登录按钮时 “正在连接玩游戏”出现,然后绿色圆圈出现 1 秒钟,然后在我从按钮调用登录并在开始时完成身份验证之后没有任何反应。请帮忙
注意:我正在统一制作这个游戏,我正在使用最新版本的游戏插件(0.10.11)
public class PlayGamesController : MonoBehaviour {
private void Start()
{
AuthenticateUser();
}
public void AuthenticateUser()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.Activate();
}
public void SignIn()
{
Social.localUser.Authenticate((bool success) =>
{
if (success == true)
{
Debug.Log("Logged in to Google Play Games Services");
}
else
{
Debug.LogError("Unable to log in to Google Play Games Services");
}
});
}
}
【问题讨论】:
-
另外,我已经为登录密钥创建了 2 个链接凭据,并且这些密钥与我的密钥库和播放控制台密钥匹配,所以即使在那里也没有问题,我到处搜索,似乎无法工作出,任何帮助表示赞赏。谢谢
标签: c# unity3d google-play-games