Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. public void ShowSelectUI()
  2.     {
  3.         if (Social.localUser.authenticated)
  4.         {
  5.             uint maxNumToDisplay = 5;
  6.             bool allowCreateNew = true;
  7.             bool allowDelete = true;
  8.  
  9.             ISavedGameClient savedGameClient = PlayGamesPlatform.Instance.SavedGame;
  10.             savedGameClient.ShowSelectSavedGameUI("Select saved game", maxNumToDisplay, allowCreateNew, allowDelete, OnSavedGameSelected);
  11.         }
  12.     }
  13.  
  14.  
  15.     public void OnSavedGameSelected (SelectUIStatus status, ISavedGameMetadata game)
  16.     {
  17.         if (status == SelectUIStatus.SavedGameSelected)
  18.         {  
  19.             //((PlayGamesPlatform)Social.Active).SavedGame.OpenWithAutomaticConflictResolution("SaveGame",              GooglePlayGames.BasicApi.DataSource.ReadCacheOrNetwork, ConflictResolutionStrategy.UseLongestPlaytime, SavedGameOpened);///IF I CALL THIS I GET A INTERNAL ERROR
  20.             Debug.Log("SAVE GAME OPENED");
  21.         }
  22.         else
  23.         {
  24.             Debug.Log("ERROR");
  25.         }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement