public override bool DownloadString(string url, Action <ERRORLEVEL, string> _OnCompleted)
 {
     base.ErrorString       = string.Empty;
     base.ErrorLevel        = ERRORLEVEL.SUCCESS;
     this.OnCompletedString = _OnCompleted;
     url            = url.Replace("//", "/");
     url            = url.Replace("http:/", "http://");
     this.behaviour = NPatchLauncherBehaviour.Owner.GetComponent <NPatchDownloderAsyncBehaviour>();
     if (this.behaviour == null)
     {
         this.behaviour = NPatchLauncherBehaviour.Owner.AddComponent <NPatchDownloderAsyncBehaviour>();
     }
     this.behaviour.StartCoroutine(this.behaviour.DownloadStringRoutine(url, this.OnCompletedString));
     return(true);
 }
 public override bool DownloadFile(string url, string filename, Action <ERRORLEVEL> _OnCompleted)
 {
     DownloderAsync.__DebugOutput("AsyncDownloder.DownloadFile : " + url);
     base.ErrorString     = string.Empty;
     base.ErrorLevel      = ERRORLEVEL.SUCCESS;
     this.OnCompletedFile = _OnCompleted;
     url            = url.Replace("//", "/");
     url            = url.Replace("http:/", "http://");
     this.behaviour = NPatchLauncherBehaviour.Owner.GetComponent <NPatchDownloderAsyncBehaviour>();
     if (this.behaviour == null)
     {
         this.behaviour = NPatchLauncherBehaviour.Owner.AddComponent <NPatchDownloderAsyncBehaviour>();
     }
     this.behaviour.StartCoroutine(this.behaviour.DownloadFileRoutine(url, filename, this.OnCompletedFile, new Action(this.OnPrograss_File)));
     return(true);
 }