Esempio n. 1
0
    public DownloadTask DownLoadBundles(string[] bundlePaths, Action <object> downloadCall, object userData, ushort priority)
    {
        DownloadTask task = ObjectPool.GetObject <DownloadTask>();

        task.InitTask(bundlePaths, FinishDownLoadTask, downloadCall, null, userData, null, null, priority);
        if (task.HasDownload())
        {
            addDownLoadTask(task);
        }
        return(task);
    }
Esempio n. 2
0
    public DownloadTask DownLoadBundles(string[] bundlePaths, Action <object> downloadCall, Action <Resource, int, int> downloadPerCall, object userData, Action <Resource> beginCall, Action <string, string> failCall, ushort priority = DEFAULT_PRIORITY)
    {
        DownloadTask task = ObjectPool.GetObject <DownloadTask>();

        task.InitTask(bundlePaths, FinishDownLoadTask, downloadCall, downloadPerCall, userData, beginCall, failCall, priority);
        if (task.HasDownload())
        {
            addDownLoadTask(task);
        }
        return(task);
    }
Esempio n. 3
0
    public DownloadTask DownLoadBundles(string[] bundlePaths, Action <object> downloadCall, ushort priority, Action <Resource, int, int> downPerAsset = null)
    {
        DownloadTask task = ObjectPool.GetObject <DownloadTask>();

        task.InitTask(bundlePaths, FinishDownLoadTask, downloadCall, downPerAsset, null, null, null, priority);
        if (task.HasDownload())
        {
            addDownLoadTask(task);
        }
        return(task);
    }