Ejemplo n.º 1
0
        public T this[float time, ValueEasingDelegate <T> easing = null]
        {
            set
            {
                var step = new AnimationKeyPoint <T>
                {
                    Time   = time,
                    Value  = value,
                    Easing = easing ?? ((start, end, advance) => advance < 1f ? start : end)
                };

                _list.Add(step);
                _list.Sort();
            }
        }
Ejemplo n.º 2
0
 public int CompareTo(AnimationKeyPoint <T> other)
 {
     return(Time.CompareTo(other.Time));
 }