예제 #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();
 }