Esempio n. 1
0
        private void OnNetworkChannelCustomError(NetworkChannel networkChannel, object customErrorData)
        {
            //派发用户自定义网络错误事件
            NetworkCustomErrorEventArgs e = ReferencePool.Acquire <NetworkCustomErrorEventArgs>();

            m_EventManager.Fire(this, e.Fill(networkChannel, customErrorData));
        }
        private void OnNetworkCustomError(object sender, GlobalEventArgs e)
        {
            NetworkCustomErrorEventArgs ne = (NetworkCustomErrorEventArgs)e;

            if (ne.NetworkChannel != m_NetworkChannel)
            {
                return;
            }
        }