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); }
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; }