public override void OnMessage(NetPeer peer, NetDataReader reader) { string protoName = string.Empty; byte[] bytes = null; ParseProtoBytes(reader, ref protoName, ref bytes); BaseHandler handler = null; if (mHandlers.TryGetValue(protoName, out handler)) { if (handler != null) { handler.OnMessage(bytes); } } }