コード例 #1
0
        /// <summary>
        /// 填充网络连接成功事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>网络连接成功事件。</returns>
        public NetworkConnectedEventArgs Fill(Ash.Core.Network.NetworkConnectedEventArgs e)
        {
            NetworkChannel = e.NetworkChannel;
            UserData       = e.UserData;

            return(this);
        }
コード例 #2
0
 private void OnNetworkConnected(object sender, Ash.Core.Network.NetworkConnectedEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <NetworkConnectedEventArgs>().Fill(e));
 }