private static void SubscribeTokens <TAttr>(IComponentRpcProvider provider, byte compId, IEnumerable <KeyValuePair <byte?, TAttr> > tokens, Action <NetMessage> del)
     where TAttr : Attribute, IRpcAttribute
 {
     foreach (var token in tokens)
     {
         if (token.Value == null)
         {
             continue;
         }
         provider.SubscribeToRpc(token.Key.HasValue ? token.Key.Value : compId, token.Value.RpcId, del);
     }
 }