private static void DownloadGoogleSheet(LocalizationDocument doc) { EditorUtility.DisplayCancelableProgressBar("Download", "Downloading...", 0); var iterator = GoogleDownload.DownloadSheet(doc.DocsId, doc.SheetId, t => DownloadComplete(t, doc), doc.Format, DisplayDownloadProgressbar); while (iterator.MoveNext()) { } }
private static IEnumerator Download(LocalizationDocument document, Action <string> done, Func <float, bool> progressbar = null) { return(GoogleDownload.DownloadSheet(document.DocsId, document.SheetId, done, document.Format, progressbar)); }