public static void DownloadStringASync(string url, Action <string> callback) { Downloader downloader = new Downloader(); downloader.url = url; downloader.callback = callback; Coroutines.AddRoutine(downloader.DownloadStringCorroutine()); }
public static void DownloadFileASync(string url, string path, Action <string> callback) { Downloader downloader = new Downloader(); downloader.url = url; downloader.path = path; downloader.callback = callback; Coroutines.AddRoutine(downloader.DownloadFileCorroutine()); }