private void FireEvent() { lock (m_BufferFromServer) { while (m_BufferFromServer.Count() > 0 && !IsLockEvent()) { byte[] buffer = m_BufferFromServer[0]; EventDispatcher.Execute(NET_EVENT, buffer); m_BufferFromServer.RemoveAt(0); } } }
private void FireEvent() { lock (m_BufferFromServer) { while (m_BufferFromServer.Count() > 0 && !IsLockEvent()) { byte[] buffer = m_BufferFromServer[0]; EventDispatcher.Execute(NET_EVENT, buffer); m_BufferFromServer.RemoveAt(0); } } }