Пример #1
0
        static void OnDespawned(SignalSubscription that)
        {
            if (that._declaration != null)
            {
                that._declaration.Remove(that);
            }

            that.SetDefaults();
        }
Пример #2
0
 public void Remove(SignalSubscription subscription)
 {
     _subscriptions.RemoveWithConfirm(subscription);
 }
Пример #3
0
 public void Add(SignalSubscription subscription)
 {
     Assert.That(!_subscriptions.Contains(subscription));
     _subscriptions.Add(subscription);
 }
Пример #4
0
        static void OnSpawned(Action <object> callback, SignalDeclaration declaration, SignalSubscription that)
        {
            Assert.IsNull(that._callback);
            that._callback    = callback;
            that._declaration = declaration;
            // Cache this in case OnDeclarationDespawned is called
            that._signalType = declaration.SignalType;

            declaration.Add(that);
        }