//下载文件失败 private void OnDownloadFaile(object sender, IEventArgs e) { DownloadFaileEventArgs ne = (DownloadFaileEventArgs)e; if (ne != null) { Debug.LogError(ne.Error); } }
public WebRequestManager() { _event = GameFrameworkMode.GetModule <EventManager>(); _httpReadTextSuccess = new HttpReadTextSuccessEventArgs(); _httpReadTextFaile = new HttpReadTextFaileEventArgs(); _downloadSuccess = new DownloadSuccessEventArgs(); _downloadFaile = new DownloadFaileEventArgs(); _downloadProgress = new DownloadProgressEventArgs(); }