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)); }
public EiMessageSubscriber(EiCore core, Action <T> method) { this.core = core; this.method = method; }
public static void Destroy(EiCore core) { core.DestroyThis(); }