Exemplo n.º 1
0
        public static EiLLNode <EiMessageSubscriber <T> > Subscribe <T> (EiComponent component, Action <T> method, int channel = 0)
        {
            var newSub = new EiMessageSubscriber <T> (component, method);

            newSub.channel = channel;
            return(EiMessage <T> .subscribers.Add(newSub));
        }
Exemplo n.º 2
0
 public EiMessageSubscriber(EiComponent component, Action <T> method)
 {
     this.comp   = component;
     this.method = method;
 }