Exemplo n.º 1
0
        public Download addDownloadWithFilename(string filename, string url, string fileId)
        {
            //Debug.Log("[Gamedonia DownloadManager] addDownloadWithFilename("+filename+","+url+","+fileId+"){ }");
            Download download = this.FindDownloadByFileId(fileId);

            if (download == null)
            {
                download = new Download();
                download.init(filename, url, fileId);
                download.DownloadDelegate = this;
                download.filesystemPath   = this.filesystemPath;
                _downloads.Add(download);
            }


            //TODO Gestion de PAUSE
            //this.addEventListener(Event.ACTIVATE,onActivate);
            //this.addEventListener(Event.DEACTIVATE,onDeactivate);

            return(download);
        }
Exemplo n.º 2
0
        public Download addDownloadWithFilename(string filename, string url, string fileId)
        {
            //Debug.Log("[Gamedonia DownloadManager] addDownloadWithFilename("+filename+","+url+","+fileId+"){ }");
            Download download = this.FindDownloadByFileId(fileId);
            if (download == null) {

                download = new Download();
                download.init(filename,url,fileId);
                download.DownloadDelegate = this;
                download.filesystemPath = this.filesystemPath;
                _downloads.Add(download);
            }

            //TODO Gestion de PAUSE
            //this.addEventListener(Event.ACTIVATE,onActivate);
            //this.addEventListener(Event.DEACTIVATE,onDeactivate);

            return download;
        }