Beispiel #1
0
        public override void ResolveValues()
        {
            if (_resolvedValues)
            {
                return;
            }
            this.ComposeDic();

            foreach (var item in this._valueDic)
            {
                XObjectValues objValue = item.Value.value;
                item.Value.updater = objValue.controlPoint == null ?
                                     (Action <float, float>) delegate(float invert, float factor)
                {
                    objValue.current = objValue.start * invert + objValue.end * factor;
                    item.Value.value = objValue;
                } :
                delegate(float invert, float factor)
                {
                    objValue.current = Calcurate(objValue.controlPoint, objValue.start, objValue.end, invert, factor);
                    item.Value.value = objValue;
                };
                item.Value.value = objValue;
            }
            this._resolvedValues = true;
        }
Beispiel #2
0
 public void Dispose()
 {
     this.updater = null;
     this.value   = default(XObjectValues);
 }