예제 #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());
        }