Пример #1
0
        public RotateScaleUpNavigationAnimation()
        {
            ForwardAnimationCloseOld   = new FrameFadeBackAnimation();
            ForwardAnimationOpenNew    = new RotateInAnimation();
            ForwardAnimationSequential = false;

            BackAnimationCloseTop     = new RotateOutAnimation();
            BackAnimationReOpenBottom = new FrameFadeInAnimation();
            BackAnimationSequential   = false;
        }
Пример #2
0
        public RotateScaleDownNavigationAnimation()
        {
            ForwardAnimationCloseOld = new FrameFadeBackAnimation();
            ForwardAnimationOpenNew  = new RotateInAnimation {
                RotateDirection = RotateAnimationDirection.RotateDown
            };
            ForwardAnimationSequential = false;

            BackAnimationCloseTop = new RotateOutAnimation {
                RotateDirection = RotateAnimationDirection.RotateDown
            };
            BackAnimationReOpenBottom = new FrameFadeInAnimation();
            BackAnimationSequential   = false;
        }
Пример #3
0
        /// <summary>
        /// Clones all the animations provided to this animator, so the original
        /// scriptable objects don't get changed.
        /// </summary>
        private void CloneAnimations()
        {
            if (moveInAnimation != null)
            {
                moveInAnimation = Instantiate(moveInAnimation) as MoveInAnimation;
            }

            if (moveOutAnimation != null)
            {
                moveOutAnimation = Instantiate(moveOutAnimation) as MoveOutAnimation;
            }

            if (movePingPongAnimation != null)
            {
                movePingPongAnimation = Instantiate(movePingPongAnimation) as MovePingPongAnimation;
            }

            if (rotateInAnimation != null)
            {
                rotateInAnimation = Instantiate(rotateInAnimation) as RotateInAnimation;
            }

            if (rotateOutAnimation != null)
            {
                rotateOutAnimation = Instantiate(rotateOutAnimation) as RotateOutAnimation;
            }

            if (rotatePingPongAnimation != null)
            {
                rotatePingPongAnimation = Instantiate(rotatePingPongAnimation) as RotatePingPongAnimation;
            }

            if (scaleInAnimation != null)
            {
                scaleInAnimation = Instantiate(scaleInAnimation) as ScaleInAnimation;
            }

            if (scaleOutAnimation != null)
            {
                scaleOutAnimation = Instantiate(scaleOutAnimation) as ScaleOutAnimation;
            }

            if (scalePingPongAnimation != null)
            {
                scalePingPongAnimation = Instantiate(scalePingPongAnimation) as ScalePingPongAnimation;
            }

            if (fadeInAnimation != null)
            {
                fadeInAnimation = Instantiate(fadeInAnimation) as FadeInAnimation;
            }

            if (fadeOutAnimation != null)
            {
                fadeOutAnimation = Instantiate(fadeOutAnimation) as FadeOutAnimation;
            }

            if (fadePingPongAnimation != null)
            {
                fadePingPongAnimation = Instantiate(fadePingPongAnimation) as FadePingPongAnimation;
            }
        }
        public RotateScaleUpNavigationAnimation()
        {
            ForwardAnimationCloseOld = new FrameFadeBackAnimation();
            ForwardAnimationOpenNew = new RotateInAnimation();
            ForwardAnimationSequential = false;

            BackAnimationCloseTop = new RotateOutAnimation();
            BackAnimationReOpenBottom = new FrameFadeInAnimation();
            BackAnimationSequential = false;
        }
        public RotateScaleDownNavigationAnimation()
        {
            ForwardAnimationCloseOld = new FrameFadeBackAnimation();
            ForwardAnimationOpenNew = new RotateInAnimation { RotateDirection = RotateAnimationDirection.RotateDown };
            ForwardAnimationSequential = false;

            BackAnimationCloseTop = new RotateOutAnimation { RotateDirection = RotateAnimationDirection.RotateDown };
            BackAnimationReOpenBottom = new FrameFadeInAnimation();
            BackAnimationSequential = false;
        }