mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
94c319746b
commit
effad42399
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user