示例#1
0
        public static void DownloadStringASync(string url, Action <string> callback)
        {
            Downloader downloader = new Downloader();

            downloader.url      = url;
            downloader.callback = callback;
            Coroutines.AddRoutine(downloader.DownloadStringCorroutine());
        }
示例#2
0
        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());
        }