예제 #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();
            }
        }
예제 #2
0
 public int CompareTo(AnimationKeyPoint <T> other)
 {
     return(Time.CompareTo(other.Time));
 }