public static RPCTypeDefinition Get(Type type)
        {
            RPCTypeDefinition info;

            if (!typeLookup.TryGetValue(type, out info))
            {
                info = new RPCTypeDefinition(type);
                typeLookup.Add(type, info);
            }
            return(info);
        }
 public RPCReference(NetworkBehaviour targetBehaviour)
 {
     m_NetworkBehaviour = targetBehaviour;
     rpcDefinition      = RPCTypeDefinition.Get(targetBehaviour.GetType());
     rpcDelegates       = rpcDefinition.CreateTargetedDelegates(m_NetworkBehaviour);
 }