From effad42399e423e7a7ee85a135ac7a6fc7efad02 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 18 Jan 2022 15:45:52 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Runtime/RemoteCalls.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/RemoteCalls.cs b/Assets/Mirror/Runtime/RemoteCalls.cs index a12798217..264de4fdd 100644 --- a/Assets/Mirror/Runtime/RemoteCalls.cs +++ b/Assets/Mirror/Runtime/RemoteCalls.cs @@ -108,7 +108,8 @@ static bool GetInvokerForHash(int cmdHash, RemoteCallType remoteCallType, out In // InvokeCmd/Rpc Delegate can all use the same function here internal static bool InvokeHandlerDelegate(int cmdHash, RemoteCallType remoteCallType, NetworkReader reader, NetworkBehaviour invokingType, NetworkConnectionToClient senderConnection = null) { - if (GetInvokerForHash(cmdHash, remoteCallType, out Invoker invoker) && invoker.invokeClass.IsInstanceOfType(invokingType)) + if (GetInvokerForHash(cmdHash, remoteCallType, out Invoker invoker) && + invoker.invokeClass.IsInstanceOfType(invokingType)) { invoker.invokeFunction(invokingType, reader, senderConnection); return true;