コード例 #1
0
 private static IEnumerator GetCloudSaveRoutine(Action <bool> after)
 {
     while (!BackendManager.IsAuthenticated)
     {
         yield return(null);
     }
     BackendManager.FetchSaveGame(delegate(FetchSaveGameResponse response)
     {
         bool obj = false;
         if (response.error == BackendError.Ok)
         {
             cloudData = DeserializeDictionary(response.saveData.FromBase64());
             if (cloudData != null && cloudData.Count > 0 && cloudData.ContainsKey("lastSaved"))
             {
                 CloudFileTime       = DateTime.Parse(cloudData["lastSaved"] as string);
                 obj                 = true;
                 HasCloudBeenFetched = true;
                 CheckCloudSyncStatus();
             }
         }
         if (after != null)
         {
             after(obj);
         }
     });
 }