mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkClient.UnregisterHandler made static
This commit is contained in:
parent
9eac983872
commit
bc6c2542f6
@ -298,18 +298,18 @@ public static void RegisterHandler(MsgType msgType, NetworkMessageDelegate handl
|
||||
}
|
||||
|
||||
[Obsolete("Use UnregisterHandler<T> instead")]
|
||||
public void UnregisterHandler(int msgType)
|
||||
public static void UnregisterHandler(int msgType)
|
||||
{
|
||||
handlers.Remove(msgType);
|
||||
}
|
||||
|
||||
[Obsolete("Use UnregisterHandler<T> instead")]
|
||||
public void UnregisterHandler(MsgType msgType)
|
||||
public static void UnregisterHandler(MsgType msgType)
|
||||
{
|
||||
UnregisterHandler((int)msgType);
|
||||
}
|
||||
|
||||
public void UnregisterHandler<T>() where T : IMessageBase
|
||||
public static void UnregisterHandler<T>() where T : IMessageBase
|
||||
{
|
||||
// use int to minimize collisions
|
||||
int msgType = MessagePacker.GetId<T>();
|
||||
|
Loading…
Reference in New Issue
Block a user