Пример #1
0
 public void OnCloudSaveResult(string result)
 {
     if (result == "OK") // handle reading or writing of saved game.
     {
         PlatformSaveUtil.ShowSaveResultPopup();
     }
     else // handle error
     {
         PlatformSaveUtil.ShowSaveErrorPopup(TextHelper.GetText("platform_cloud_save_fail") + "\n\n" + result);
     }
 }
Пример #2
0
    public void OnSavedGameWritten(SavedGameRequestStatus status, ISavedGameMetadata game)
    {
        if (status == SavedGameRequestStatus.Success)
        {
            // handle reading or writing of saved game.
            PlatformSaveUtil.ShowSaveResultPopup();
        }
        else
        {
            // handle error
            PlatformSaveUtil.ShowSaveErrorPopup(string.Format("OnSavedGameWritten: OnSavedGameWritten failed! - {0}",
                                                              status));
            BalloonLogManager.Add(BalloonLogEntry.Type.GameCloudSaveFailure, 0, 3);
        }

        //rootCanvasGroup.interactable = true;
    }
Пример #3
0
    void OnSavedGameWritten(SavedGameRequestStatus status, ISavedGameMetadata game)
    {
        if (status == SavedGameRequestStatus.Success)
        {
            // handle reading or writing of saved game.
            platformSaveUtil.ShowSaveResultPopup();
        }
        else
        {
            // handle error
            platformSaveUtil.ShowSaveErrorPopup($"OnSavedGameWritten: OnSavedGameWritten failed! - {status}");
            PlatformInterface.instance.logManager.Add(PlatformInterface.instance.logEntryType.GameCloudSaveFailure, 0,
                                                      3);
        }

        //rootCanvasGroup.interactable = true;
    }