public void SendUdp <T>(MessageID messageId, T t) where T : Google.Protobuf.IMessage { if (mClient != null) { byte[] data = ProtoTransfer.SerializeProtoBuf3 <T>(t); MessageBuffer message = new MessageBuffer((int)messageId, data, mClient.Id); mClient.SendUdp(message); } }