mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkBehaviour.RegisterDelegate: improve syntax
This commit is contained in:
parent
ab1211b287
commit
88640c9d89
@ -373,7 +373,9 @@ protected static void RegisterDelegate(Type invokeClass, string cmdName, MirrorI
|
||||
{
|
||||
// something already registered this hash
|
||||
Invoker oldInvoker = cmdHandlerDelegates[cmdHash];
|
||||
if (oldInvoker.invokeClass == invokeClass && oldInvoker.invokeType == invokerType && oldInvoker.invokeFunction == func)
|
||||
if (oldInvoker.invokeClass == invokeClass &&
|
||||
oldInvoker.invokeType == invokerType &&
|
||||
oldInvoker.invokeFunction == func)
|
||||
{
|
||||
// it's all right, it was the same function
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user