예제 #1
0
 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);
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public static void SaveDataSnapshot()
 {
     SaveLoadOperation.SaveData(rawBinaryData, OnDataSavedSucced, _fileName, _fileExtension);
 }