private static void OnDataLoadFailed() { Debug.LogError("Failed to retrive the binaryData"); SaveLoadOperation.SaveData( new BinaryDataWrapper(), delegate { SaveLoadOperation.LoadData <BinaryDataWrapper>(OnDataLoadFailed, OnDataLoadSucceed, _fileName, _fileExtension); }, _fileName, _fileExtension); }
public static void RegisterInBinaryData <T>(BinaryData <T> binaryData) { if (!_isInitialDataLoaded) { AssignedToDesignatedQueueForRetrivingData(binaryData); if (!_isDataLoadingProcessOnGoing) { _isDataLoadingProcessOnGoing = true; SaveLoadOperation.LoadData <BinaryDataWrapper>(OnDataLoadFailed, OnDataLoadSucceed, _fileName, _fileExtension); } } else { PassRetrivedData(ref binaryData); } }
public static void SaveDataSnapshot() { SaveLoadOperation.SaveData(rawBinaryData, OnDataSavedSucced, _fileName, _fileExtension); }