Exemplo n.º 1
0
 static void CheckConectionResult()
 {
     if (wwwPluginData != null)
     {
         if (wwwPluginData.isDone)
         {
             EditorApplication.update -= CheckConectionResult;
             if (string.IsNullOrEmpty(wwwPluginData.error))
             {
                 if (DeserializeData(wwwPluginData.text))
                 {
                     I2AboutWindow.DownloadedData = wwwPluginData.text;
                 }
             }
             else
             {
                 I2AboutWindow.LoadPluginsData();
             }
             wwwPluginData = null;
             CheckIfAnyPluginNeedsUpgrading();
         }
     }
     else
     {
         EditorApplication.update -= CheckConectionResult;
     }
 }
Exemplo n.º 2
0
 static void CheckConectionResult()
 {
     if (wwwPluginData != null)
     {
         if (wwwPluginData.isDone)
         {
             EditorApplication.update -= CheckConectionResult;
             if (string.IsNullOrEmpty(wwwPluginData.error))
             {
                 var text = System.Text.Encoding.UTF8.GetString(wwwPluginData.bytes); // wwwPluginData.text
                 if (DeserializeData(text))
                 {
                     I2AboutWindow.DownloadedData = text;
                 }
             }
             else
             {
                 I2AboutWindow.LoadPluginsData();
             }
             wwwPluginData = null;
             CheckIfAnyPluginNeedsUpgrading();
         }
     }
     else
     {
         EditorApplication.update -= CheckConectionResult;
     }
 }