diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 28120548a..669ae44ed 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -298,18 +298,18 @@ public static void RegisterHandler(MsgType msgType, NetworkMessageDelegate handl } [Obsolete("Use UnregisterHandler instead")] - public void UnregisterHandler(int msgType) + public static void UnregisterHandler(int msgType) { handlers.Remove(msgType); } [Obsolete("Use UnregisterHandler instead")] - public void UnregisterHandler(MsgType msgType) + public static void UnregisterHandler(MsgType msgType) { UnregisterHandler((int)msgType); } - public void UnregisterHandler() where T : IMessageBase + public static void UnregisterHandler() where T : IMessageBase { // use int to minimize collisions int msgType = MessagePacker.GetId();