Ejemplo n.º 1
0
        /// <summary>
        /// Queue the destination, it will be used to continue at the last frame
        /// </summary>
        /// <param name="queuedDestination"></param>
        /// <param name="frames"></param>
        /// <param name="easingType"></param>
        /// <param name="easingMode"></param>
        public void QueueDestinationLeg(T queuedDestination, int frames, EasingType easingType, EasingMode easingMode)
        {
            AnimationLeg <T> leg = new AnimationLeg <T>();

            leg.Destination = queuedDestination;
            leg.Frames      = frames;
            leg.EasingType  = easingType;
            leg.EasingMode  = easingMode;
            queue.Enqueue(leg);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Queue the destination, it will be used to continue at the last frame
        /// </summary>
        /// <param name="queuedDestination"></param>
        /// <param name="frames"></param>
        /// <param name="easingType"></param>
        /// <param name="easingMode"></param>
        public void QueueDestinationLeg(T queuedDestination, int frames, EasingType easingType, EasingMode easingMode)
        {
            AnimationLeg <T> leg = new AnimationLeg <T>
            {
                Destination = queuedDestination,
                Frames      = frames,
                EasingType  = easingType,
                EasingMode  = easingMode
            };

            _queue.Enqueue(leg);
        }