我上显示保存的游戏ui.Here得到以下异常是我的代码:之前,您必须启用保存的游戏它可以:Google Play游戏服务| ShowSelectSavedGameUI统一的Android
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
.EnableSavedGames()
.Build();
PlayGamesPlatform.InitializeInstance(config);
// Activate the Play Games platform. This will make it the default
// implementation of Social.Active
PlayGamesPlatform.Activate();
// Sign in to Google Play Games
mAuthenticating = true;
Social.localUser.Authenticate((bool success) => {
mAuthenticating = false;
if (success) {
Debug.Log("Login successful!");
} else {
// no need to show error message (error messages are shown automatically
// by plugin)
Debug.LogWarning("Failed to sign in with Google Play Games.");
}
});
显示UI代码::
((PlayGamesPlatform)Social.Active).SavedGame.ShowSelectSavedGameUI("Save game progress", 1,true,false,SavedGameSelected);
NotImplementedException使用。请参阅PlayGamesClientConfiguration.Builder.EnableSavedGames。 02-06 20:03:38.804:I /统一(32369):在GooglePlayGames.Native.UnsupportedSavedGamesClient.ShowSelectSavedGameUI(System.String uiTitle,UInt32的maxDisplayedSavedGames,布尔showCreateSaveUI,布尔showDeleteSaveUI,System.Action`2回调)[0x00000]在:0 02-06 20:03:38.804:I/Unity(32369):在GameManager.ShowSelectGame()[0x00000]中:0
但是每次我都从登录中获得成功。
更新::通过PlayGamesPlatform.Activate()解决的问题;先进行Social.localUser.Authenticate。 – 2015-02-06 19:43:10