Beispiel #1
0
    private void OnDownloadComplete(string filename, YDownloader.DownloadResult result)
    {
        Debug.LogFormat("{0}: {1}", filename, result);

        if (result == YDownloader.DownloadResult.SUCCESS || result == YDownloader.DownloadResult.FILE_EXIST)
        {
            messager.Clear();
            OnResourceReady(filename);
        }
        else
        {
            messager.SetMessege("Загрузка не удалась");
        }
    }
Beispiel #2
0
    private void OnDownloadComplete(string filename, YDownloader.DownloadResult result)
    {
        Debug.LogFormat("{0}: {1}", filename, result);

        if (result == YDownloader.DownloadResult.SUCCESS || result == YDownloader.DownloadResult.FILE_EXIST)
        {
            messager.Clear();
            Debug.Log("start activity"); //PdfViewer.StartActivityAsync(filename);
        }
        else
        {
            messager.SetMessege("Загрузка не удалась");
        }
    }