Пример #1
0
    public void ExecuteCloudSave()
    {
        SaveLoadManager.Save(BalloonSpawner.instance, ConfigPopup.instance, BalloonSound.instance, Data.instance,
                             SaveLoadManager.SaveReason.BeforeCloudSave);
        PlatformSaveUtil.ShowSaveProgressPopup();
#pragma warning disable 219
        var savedData = PlatformSaveUtil.SerializeSaveData();
#pragma warning restore 219
        // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의
        // PlatformCallbackHandler.OnIosSaveResult()로 비동기적으로 호출되는 것으로 처리한다.
#if UNITY_IOS
        PlatformIosNative.saveToCloudPrivate(Social.localUser.id, System.Convert.ToBase64String(savedData), LoginErrorTitle, LoginErrorMessage, ConfirmMessage);
#endif
    }
Пример #2
0
    public void ExecuteCloudSave()
    {
        SaveLoadManager.Save(BalloonSpawner.instance, ConfigPopup.instance, BalloonSound.instance, Data.instance,
            SaveLoadManager.SaveReason.BeforeCloudSave);
        PlatformSaveUtil.ShowSaveProgressPopup();

        var savedData = PlatformSaveUtil.SerializeSaveData();

        using (var f = File.Create(RemoteSaveFileForEditor))
        {
            f.Write(savedData, 0, savedData.Length);
        }

        var remoteSaveDict = PlatformSaveUtil.DeserializeSaveData(savedData);
        ShowSaveResultPopup(savedData, remoteSaveDict, RemoteSaveFileForEditor);
    }
Пример #3
0
    public void ExecuteCloudSave()
    {
        PlatformInterface.instance.saveLoadManager.SaveBeforeCloudSave();
        platformSaveUtil.ShowSaveProgressPopup();

        var savedData = PlatformInterface.instance.saveUtil.SerializeSaveData();

        using (var f = File.Create(RemoteSaveFileForEditor))
        {
            f.Write(savedData, 0, savedData.Length);
        }

        var remoteSaveDict = PlatformInterface.instance.saveUtil.DeserializeSaveData(savedData);

        ShowSaveResultPopup(savedData, remoteSaveDict, RemoteSaveFileForEditor);
    }
Пример #4
0
    public void ExecuteCloudSave()
    {
        PlatformInterface.instance.saveLoadManager.SaveBeforeCloudSave();
        platformSaveUtil.ShowSaveProgressPopup();
#pragma warning disable 219
        var savedData = PlatformInterface.instance.saveUtil.SerializeSaveData();
#pragma warning restore 219
        // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의
        // PlatformCallbackHandler.OnIosSaveResult()로 비동기적으로 호출되는 것으로 처리한다.
        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            PlatformIosNative.saveToCloudPrivate(Social.localUser.id, Convert.ToBase64String(savedData),
                                                 PlatformInterface.instance.text.LoginErrorTitle, PlatformInterface.instance.text.LoginErrorMessage,
                                                 PlatformInterface.instance.text.ConfirmMessage);
        }
    }
Пример #5
0
    public void ExecuteCloudSave()
    {
#if !NO_GPGS
        SaveLoadManager.Save(BalloonSpawner.instance, ConfigPopup.instance, BalloonSound.instance, Data.instance,
                             SaveLoadManager.SaveReason.BeforeCloudSave);
        PlatformSaveUtil.ShowSaveProgressPopup();

        var savedGameClient = PlayGamesPlatform.Instance.SavedGame;
        if (savedGameClient != null)
        {
            Open(savedGameClient,
                 true,
                 OnSavedGameOpenedAndWriteConflictResolve,
                 OnSavedGameOpenedAndWrite);
        }
        else
        {
            PlatformSaveUtil.ShowSaveErrorPopup("OnClick_cloudSave: savedGameClient null");
            BalloonLogManager.Add(BalloonLogEntry.Type.GameCloudSaveFailure, 0, 1);
        }
#endif
    }
Пример #6
0
    public void ExecuteCloudSave()
    {
#if !NO_GPGS
        PlatformInterface.instance.saveLoadManager.SaveBeforeCloudSave();
        platformSaveUtil.ShowSaveProgressPopup();

        var savedGameClient = PlayGamesPlatform.Instance.SavedGame;
        if (savedGameClient != null)
        {
            Open(savedGameClient,
                 true,
                 OnSavedGameOpenedAndWriteConflictResolve,
                 OnSavedGameOpenedAndWrite);
        }
        else
        {
            platformSaveUtil.ShowSaveErrorPopup("OnClick_cloudSave: savedGameClient null");
            PlatformInterface.instance.logManager.Add(PlatformInterface.instance.logEntryType.GameCloudSaveFailure, 0,
                                                      1);
        }
#endif
    }