diff --git a/Assets/Mirror/Runtime/Messages.cs b/Assets/Mirror/Runtime/Messages.cs index 8c9d57b89..efd318e2b 100644 --- a/Assets/Mirror/Runtime/Messages.cs +++ b/Assets/Mirror/Runtime/Messages.cs @@ -321,16 +321,16 @@ public void Deserialize(NetworkReader reader) { } public void Serialize(NetworkWriter writer) { } } - class ObjectDestroyMessage : MessageBase + struct ObjectDestroyMessage : IMessageBase { public uint netId; - public override void Deserialize(NetworkReader reader) + public void Deserialize(NetworkReader reader) { netId = reader.ReadPackedUInt32(); } - public override void Serialize(NetworkWriter writer) + public void Serialize(NetworkWriter writer) { writer.WritePackedUInt32(netId); }