Esempio n. 1
0
        /// <summary>
        /// Lerp from startValue to endValue over time.
        /// </summary>
        /// <param name="start">Starting value.</param>
        /// <param name="end">Ending value.</param>
        /// <param name="time">Time in seconds to lerp from startValue to endValue.</param>
        public ICommand LerpOverTime(float start, float end, float time)
        {
            ICommand l = new Commands.Lerp(this, start, end, time);

            l.Execute();
            return(l);
        }
Esempio n. 2
0
        /// <summary>
        /// Lerp from current value to target value over time.
        /// </summary>
        /// <param name="value">Target value at end of lerp.</param>
        /// <param name="time">Time in seconds to lerp from 0 to 1.</param>
        public ICommand LerpOverTime(float value, float time)
        {
            ICommand l = new Commands.Lerp(this, value, time);

            l.Execute();
            return(l);
        }