protected sealed override void onModifierRemoved(ITezModifier modifier)
        {
            ITezValueModifier vm = (ITezValueModifier)modifier;

            this.onModifierRemoved(vm);
            vm.onValueChanged -= changeModifier;
        }
        public bool removeModifier(ITezModifier modifier)
        {
            if (m_Modifiers.Remove(modifier))
            {
                this.onModifierRemoved(modifier);
                this.dirty = true;
                return(true);
            }

            return(false);
        }
 protected abstract void onModifierClear(ITezModifier modifier);
 protected abstract void onModifierRemoved(ITezModifier modifier);
 protected abstract void onModifierAdded(ITezModifier modifier);
 public void addModifier(ITezModifier modifier)
 {
     this.dirty = true;
     this.onModifierAdded(modifier);
     m_Modifiers.Add(modifier);
 }
        protected override void onModifierClear(ITezModifier modifier)
        {
            ITezValueModifier vm = (ITezValueModifier)modifier;

            vm.onValueChanged -= changeModifier;
        }