我正在开发一个android游戏,我正在使用一个真实的设备进行测试。这款游戏使用谷歌游戏服务。当我尝试实现游戏服务时,授权登录失败了。只有在使用EnableSavedGames()时才会出现错误。如果我不使用EnableSavedGames(),那么我可以登录。有人能帮我解决这个问题吗?
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
// enables saving game progress.
.EnableSavedGames()
.Build();
PlayGamesPlatform.InitializeInstance(config);
// recommended for debugging:
PlayGamesPlatform.DebugLogEnabled = true;
// Activate the Google Play Games platform
PlayGamesPlatform.Activate();要在代码中登录
Social.localUser.Authenticate((bool success) => {
// handle success or failure
});发布于 2019-02-19 02:51:25
在新创建的Play Game Services项目上有一个bug。它来自谷歌方面,他们仍在努力解决这个问题。
https://github.com/playgameservices/play-games-plugin-for-unity/issues/2429
你可以通过这个链接来关注这个问题。我希望他们能快点修好它。
https://stackoverflow.com/questions/54684263
复制相似问题