예제 #1
0
 /// <summary>
 /// Disposes of the Slot. Disposing removes the Slot from its Signal, and then
 /// nulls out and cleans up its values to be pooled and reused.
 /// </summary>
 public void Dispose()
 {
     if (!signal)
     {
         return;
     }
     if (signal.Get(listener))
     {
         signal.Remove(listener);
     }
     else
     {
         signal   = null;
         listener = null;
         priority = 0;
         isOnce   = false;
     }
 }
예제 #2
0
 public SubscriberInfo(Action callback, SignalBase parent) : base(callback, parent)
 {
 }
예제 #3
0
 protected SubscriberInfoBase(Delegate action, SignalBase parentSignal)
 {
     this.parentSignal = parentSignal;
     this.action       = action;
 }