mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkClient.RegisterHandler: remove unnecessary ToString
This commit is contained in:
parent
c6fffc6505
commit
9e8dc924de
@ -323,7 +323,7 @@ public static void RegisterHandler(int msgType, NetworkMessageDelegate handler)
|
||||
{
|
||||
if (handlers.ContainsKey(msgType))
|
||||
{
|
||||
if (LogFilter.Debug) Debug.Log("NetworkClient.RegisterHandler replacing " + handler.ToString() + " - " + msgType);
|
||||
if (LogFilter.Debug) Debug.Log("NetworkClient.RegisterHandler replacing " + handler + " - " + msgType);
|
||||
}
|
||||
handlers[msgType] = handler;
|
||||
}
|
||||
@ -339,7 +339,7 @@ public static void RegisterHandler(MsgType msgType, NetworkMessageDelegate handl
|
||||
int msgType = MessagePacker.GetId<T>();
|
||||
if (handlers.ContainsKey(msgType))
|
||||
{
|
||||
if (LogFilter.Debug) Debug.Log("NetworkClient.RegisterHandler replacing " + handler.ToString() + " - " + msgType);
|
||||
if (LogFilter.Debug) Debug.Log("NetworkClient.RegisterHandler replacing " + handler + " - " + msgType);
|
||||
}
|
||||
handlers[msgType] = (networkMessage) =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user