diff --git a/Assets/Mirror/Runtime/Messages.cs b/Assets/Mirror/Runtime/Messages.cs index efd318e2b..9a01f7e9c 100644 --- a/Assets/Mirror/Runtime/Messages.cs +++ b/Assets/Mirror/Runtime/Messages.cs @@ -369,20 +369,20 @@ public void Serialize(NetworkWriter writer) } } - class UpdateVarsMessage : MessageBase + struct UpdateVarsMessage : IMessageBase { public uint netId; // the serialized component data // -> ArraySegment to avoid unnecessary allocations public ArraySegment payload; - public override void Deserialize(NetworkReader reader) + public void Deserialize(NetworkReader reader) { netId = reader.ReadPackedUInt32(); payload = reader.ReadBytesAndSizeSegment(); } - public override void Serialize(NetworkWriter writer) + public void Serialize(NetworkWriter writer) { writer.WritePackedUInt32(netId); writer.WriteBytesAndSizeSegment(payload);