NetworkClient.RegisterHandler: remove unnecessary ToString

This commit is contained in:
vis2k 2019-04-06 12:32:11 +02:00
parent c6fffc6505
commit 9e8dc924de

View File

@ -323,7 +323,7 @@ public static void RegisterHandler(int msgType, NetworkMessageDelegate handler)
{ {
if (handlers.ContainsKey(msgType)) 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; handlers[msgType] = handler;
} }
@ -339,7 +339,7 @@ public static void RegisterHandler(MsgType msgType, NetworkMessageDelegate handl
int msgType = MessagePacker.GetId<T>(); int msgType = MessagePacker.GetId<T>();
if (handlers.ContainsKey(msgType)) 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) => handlers[msgType] = (networkMessage) =>
{ {