Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ShowSelectUI()
- {
- if (Social.localUser.authenticated)
- {
- uint maxNumToDisplay = 5;
- bool allowCreateNew = true;
- bool allowDelete = true;
- ISavedGameClient savedGameClient = PlayGamesPlatform.Instance.SavedGame;
- savedGameClient.ShowSelectSavedGameUI("Select saved game", maxNumToDisplay, allowCreateNew, allowDelete, OnSavedGameSelected);
- }
- }
- public void OnSavedGameSelected (SelectUIStatus status, ISavedGameMetadata game)
- {
- if (status == SelectUIStatus.SavedGameSelected)
- {
- //((PlayGamesPlatform)Social.Active).SavedGame.OpenWithAutomaticConflictResolution("SaveGame", GooglePlayGames.BasicApi.DataSource.ReadCacheOrNetwork, ConflictResolutionStrategy.UseLongestPlaytime, SavedGameOpened);///IF I CALL THIS I GET A INTERNAL ERROR
- Debug.Log("SAVE GAME OPENED");
- }
- else
- {
- Debug.Log("ERROR");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement