mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
GetRpcMethod does not need an instance
This commit is contained in:
parent
bc87649be6
commit
5985e6d641
@ -445,7 +445,7 @@ internal bool InvokeHandlerDelegate(int cmdHash, MirrorInvokeType invokeType, Ne
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="cmdHash">rpc function hash</param>
|
/// <param name="cmdHash">rpc function hash</param>
|
||||||
/// <returns>The function delegate that will handle the command</returns>
|
/// <returns>The function delegate that will handle the command</returns>
|
||||||
public CmdDelegate GetRpcHandler(int cmdHash)
|
public static CmdDelegate GetRpcHandler(int cmdHash)
|
||||||
{
|
{
|
||||||
if (cmdHandlerDelegates.TryGetValue(cmdHash, out Invoker invoker))
|
if (cmdHandlerDelegates.TryGetValue(cmdHash, out Invoker invoker))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user