public override void Activate(object source, CogData data)
        {
            for (int i = 0; i < this.TriggerTargets.Length; i++)
            {
                this.TriggerTargets[i].Activate(this, data);
            }

            base.Activate(source, data);
        }
 public override void Deactivate(object source, CogData data)
 {
     if (this.AllowDeactivations)
     {
         for (int i = 0; i < this.TriggerTargets.Length; i++)
         {
             this.TriggerTargets[i].Deactivate(this, data);
         }
     }
     base.Deactivate(source, data);
 }
Esempio n. 3
0
        public override void Activate(object source, CogData data)
        {
            mCurrentSlaveActivations++;
            if (mCurrentSlaveActivations >= this.RequiredActivations)
            {
                if (this.FinalTriggerTarget != null)
                {
                    this.FinalTriggerTarget.Activate(source, data);
                }
            }

            base.Activate(source, data);
        }
Esempio n. 4
0
        public override void Deactivate(object source, CogData data)
        {
            if (this.AllowDeactivations)
            {
                mCurrentSlaveActivations--;

                if (mCurrentSlaveActivations < 0)
                {
                    mCurrentSlaveActivations = 0;
                }
            }

            base.Deactivate(source, data);
        }