Example #1
0
        public void TweenValue(float floatPercentage)
        {
            if (!this.ValidTarget())
            {
                return;
            }
            float value = EasingEquations.GetValue(easeType, startValue, targetValue, floatPercentage);

            this.m_Target.Invoke(value);
        }
Example #2
0
        public void TweenValue(float floatPercentage)
        {
            if (!this.ValidTarget())
            {
                return;
            }
            float x = EasingEquations.GetValue(easeType, startValue.x, targetValue.x, floatPercentage);
            float y = EasingEquations.GetValue(easeType, startValue.y, targetValue.y, floatPercentage);
            float z = EasingEquations.GetValue(easeType, startValue.z, targetValue.z, floatPercentage);

            this.m_Target.Invoke(new Vector3(x, y, z));
        }