private void OnSavedGameOpened(SavedGameRequestStatus status, ISavedGameMetadata game)
 {
     if (status == SavedGameRequestStatus.Success)
     {
         if (!isSaving)
         {
             //feedback.text = ("OnSaveGameOpened Loading");
             LoadGame(game);
         }
         else
         {
             //feedback.text = ("OnSaveGameOpened Saving");
             SaveGame(game);
         }
     }
     else
     {
         if (!isSaving)
         {
             LocalSaveEngine.LoadPlayer();
         }
         else
         {
             LocalSaveEngine.SavePlayer();
         }
     }
 }
 private void OnSavedGameDataRead(SavedGameRequestStatus status, byte[] savedData)
 {
     if (status == SavedGameRequestStatus.Success)
     {
         if (savedData != null)
         {
             string cloudDataString = Encoding.ASCII.GetString(savedData);
             if (cloudDataString != null)
             {
                 if (cloudDataString != "")
                 {
                     SaveManager.LoadSplit(cloudDataString);
                     isCloudDataLoaded = true;
                 }
                 else
                 {
                     LocalSaveEngine.LoadPlayer();
                 }
             }
             else
             {
                 LocalSaveEngine.LoadPlayer();
             }
         }
         else
         {
             LocalSaveEngine.LoadPlayer();
         }
     }
 }
 public void LoadData()
 {
     if (Social.Active.localUser.authenticated)
     {
         isSaving = false;
         ((PlayGamesPlatform)Social.Active).SavedGame.OpenWithAutomaticConflictResolution(SAVE_NAME,
                                                                                          DataSource.ReadCacheOrNetwork, ConflictResolutionStrategy.UseLongestPlaytime, OnSavedGameOpened);
         UnityEngine.Debug.Log("Load Data = Cloud Load");
     }
     else
     {
         LocalSaveEngine.LoadPlayer();
         UnityEngine.Debug.Log("Load Data = Local Load");
     }
 }