Beispiel #1
0
        /// <summary>
        ///     Add a new key to ease curve. Value will be read from existing
        ///     curve.
        /// </summary>
        /// <param name="time"></param>
        public void AddKeyToEaseCurve(float time)
        {
            var valueAtTime = EaseCurve.Evaluate(time);

            EaseCurve.AddKey(time, valueAtTime);

            OnEaseCurveUpdated();
        }
Beispiel #2
0
 public float GetEaseValueAtTime(float timestamp)
 {
     return(EaseCurve.Evaluate(timestamp));
 }