/// <summary>
        /// 创建 Web 请求开始事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的 Web 请求开始事件。</returns>
        public static WebRequestStartEventArgs Create(GameFramework.WebRequest.WebRequestStartEventArgs e)
        {
            WWWFormInfo wwwFormInfo = (WWWFormInfo)e.UserData;
            WebRequestStartEventArgs webRequestStartEventArgs = ReferencePool.Acquire <WebRequestStartEventArgs>();

            webRequestStartEventArgs.SerialId      = e.SerialId;
            webRequestStartEventArgs.WebRequestUri = e.WebRequestUri;
            webRequestStartEventArgs.UserData      = wwwFormInfo.UserData;
            return(webRequestStartEventArgs);
        }
示例#2
0
 private void OnWebRequestStart(object sender, GameFramework.WebRequest.WebRequestStartEventArgs e)
 {
     m_EventComponent.Fire(this, WebRequestStartEventArgs.Create(e));
 }