mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour.GetCmdHashHandlerName simplified
This commit is contained in:
parent
ba6e34ab9b
commit
c560cf4bf2
@ -273,12 +273,12 @@ internal bool InvokeHandlerDelegate(int cmdHash, UNetInvokeType invokeType, Netw
|
||||
|
||||
internal static string GetCmdHashHandlerName(int cmdHash)
|
||||
{
|
||||
if (!s_CmdHandlerDelegates.ContainsKey(cmdHash))
|
||||
Invoker invoker;
|
||||
if (s_CmdHandlerDelegates.TryGetValue(cmdHash, out invoker))
|
||||
{
|
||||
return cmdHash.ToString();
|
||||
return invoker.invokeType + ":" + invoker.invokeFunction.GetMethodName();
|
||||
}
|
||||
Invoker inv = s_CmdHandlerDelegates[cmdHash];
|
||||
return inv.invokeType + ":" + inv.invokeFunction.GetMethodName();
|
||||
return cmdHash.ToString();
|
||||
}
|
||||
|
||||
// ----------------------------- Helpers --------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user