Exemple #1
0
 private static void TankPrefs_SendAndSaveToCloud()
 {
     TankPrefs_Save();
     if (IsSafeToSendCloud)
     {
         cloudData = data;
         cloudData["localEncrypted"] = 1;
         BackendManager.SendSaveGame(SerializeDictionary(cloudData, cloudBuilder).ToBase64(), delegate(PostSaveGameResponse response)
         {
             if (response.error == BackendError.Ok)
             {
                 CloudSyncComplete = true;
             }
             else
             {
                 CloudSyncComplete = false;
             }
         });
     }
 }