Exemplo n.º 1
0
        //下载文件失败
        private void OnDownloadFaile(object sender, IEventArgs e)
        {
            DownloadFaileEventArgs ne = (DownloadFaileEventArgs)e;

            if (ne != null)
            {
                Debug.LogError(ne.Error);
            }
        }
Exemplo n.º 2
0
 public WebRequestManager()
 {
     _event = GameFrameworkMode.GetModule <EventManager>();
     _httpReadTextSuccess = new HttpReadTextSuccessEventArgs();
     _httpReadTextFaile   = new HttpReadTextFaileEventArgs();
     _downloadSuccess     = new DownloadSuccessEventArgs();
     _downloadFaile       = new DownloadFaileEventArgs();
     _downloadProgress    = new DownloadProgressEventArgs();
 }