This commit is contained in:
vis2k 2022-01-18 17:27:34 +08:00
parent 1eca5fe9b4
commit 1328dcb7ea

View File

@ -30,6 +30,8 @@ public bool AreEqual(Type componentType, RemoteCallType remoteCallType, RemoteCa
/// <summary>Used to help manage remote calls for NetworkBehaviours</summary>
public static class RemoteProcedureCalls
{
// one lookup for all remote calls.
// allows us to easily add more remote call types without duplicating code.
// note: do not clear those with [RuntimeInitializeOnLoad]
static readonly Dictionary<int, Invoker> remoteCallDelegates = new Dictionary<int, Invoker>();