private static void EditorUpdate()
{
if (!DLError)
{
if (FinishedDL)
{
DownloadFinished();
}
else if (EditorUtility.DisplayCancelableProgressBar("Downloading latest Fuse SDK", "Downloaded: " + KBytes + "kB / " + TotalKBytes + "kB", DownloadProgress))
{
Downloader.CancelAsync();
}
else
{
return;
}
}
EditorApplication.update -= EditorUpdate;
EditorUtility.ClearProgressBar();
if (Downloader != null)
{
Downloader.Dispose();
Downloader = null;
}
}