예제 #1
0
 private static void InitializeAnimation(ref Channel animationChannel, ref AnimationInitialValues <T> animationValue)
 {
     animationChannel.ValuePrev  = animationValue.Value1;
     animationChannel.ValueStart = animationValue.Value1;
     animationChannel.ValueEnd   = animationValue.Value1;
     animationChannel.ValueNext  = animationValue.Value2;
 }
예제 #2
0
 internal static void InitializeAnimation(ref EvaluatorData animationChannel, ref AnimationInitialValues <float> animationValue)
 {
     animationChannel.ValuePrev  = animationValue.Value1;
     animationChannel.ValueStart = animationValue.Value1;
     animationChannel.ValueEnd   = animationValue.Value1;
     animationChannel.ValueNext  = animationValue.Value2;
 }
예제 #3
0
            public void InvalidateTime()
            {
                reachedEnd = false;

                currentKeyFrame = keyFrames.GetEnumerator();

                var animationInitialValues = new AnimationInitialValues <float>();

                // Skip two elements (right before third)
                currentKeyFrame.MoveNext();
                animationInitialValues.Value1 = currentKeyFrame.Current;
                currentKeyFrame.MoveNext();
                animationInitialValues.Value2 = currentKeyFrame.Current;

                currentTime = animationInitialValues.Value1.Time;

                InitializeAnimation(ref data, ref animationInitialValues);
            }