Пример #1
0
        public static EiLLNode <EiMessageSubscriber <T> > Subscribe <T> (EiCore core, Action <T> method, int channel = 0)
        {
            var newSub = new EiMessageSubscriber <T> (core, method);

            newSub.channel = channel;
            return(EiMessage <T> .subscribers.Add(newSub));
        }
Пример #2
0
 public EiMessageSubscriber(EiCore core, Action <T> method)
 {
     this.core   = core;
     this.method = method;
 }
Пример #3
0
 public static void Destroy(EiCore core)
 {
     core.DestroyThis();
 }