public FadeDownNavigationAnimation() { ForwardAnimationCloseOld = new FadeOutDownAnimation {Distance = 50}; ForwardAnimationOpenNew = new ScaleInAnimation { Delay = 0.2 }; ForwardAnimationSequential = false; BackAnimationCloseTop = new ScaleOutAnimation(); BackAnimationReOpenBottom = new FadeInUpAnimation {Distance = 50, Delay = 0.2}; BackAnimationSequential = false; }
public FadeDownNavigationAnimation() { ForwardAnimationCloseOld = new FadeOutDownAnimation { Distance = 50 }; ForwardAnimationOpenNew = new ScaleInAnimation { Delay = 0.2 }; ForwardAnimationSequential = false; BackAnimationCloseTop = new ScaleOutAnimation(); BackAnimationReOpenBottom = new FadeInUpAnimation { Distance = 50, Delay = 0.2 }; BackAnimationSequential = false; }
public SuperScaleNavigationAnimation() { ForwardAnimationCloseOld = new ScaleOutAnimation { EndScale = 0.0, Duration = 0.4 }; ForwardAnimationOpenNew = new ScaleInAnimation { StartScale = 1.2, Duration = 0.4 }; ForwardAnimationSequential = false; BackAnimationCloseTop = new ScaleOutAnimation { EndScale = 1.2, Duration = 0.4 }; BackAnimationReOpenBottom = new ScaleInAnimation { StartScale = 0.0, Duration = 0.4 }; BackAnimationSequential = false; }
/// <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; } }
private static AnimationDefinition GetAnimationDefinition(string animationName) { AnimationDefinition animationDefinition = null; if (animationName != null) { switch (animationName.ToLower()) { case "flash": animationDefinition = new FlashAnimation(); break; case "bounce": animationDefinition = new BounceAnimation(); break; case "shake": animationDefinition = new ShakeAnimation(); break; case "tada": animationDefinition = new TadaAnimation(); break; case "swing": animationDefinition = new SwingAnimation(); break; case "wobble": animationDefinition = new WobbleAnimation(); break; case "pulse": animationDefinition = new PulseAnimation(); break; case "breathing": animationDefinition = new BreathingAnimation(); break; case "jump": animationDefinition = new JumpAnimation(); break; case "flip": animationDefinition = new FlipAnimation(); break; case "flipinx": animationDefinition = new FlipInXAnimation(); break; case "flipoutx": animationDefinition = new FlipOutXAnimation(); break; case "flipiny": animationDefinition = new FlipInYAnimation(); break; case "flipouty": animationDefinition = new FlipOutYAnimation(); break; case "fadein": animationDefinition = new FadeInAnimation(); break; case "fadeout": animationDefinition = new FadeOutAnimation(); break; case "fadeinleft": animationDefinition = new FadeInLeftAnimation(); break; case "fadeinright": animationDefinition = new FadeInRightAnimation(); break; case "fadeinup": animationDefinition = new FadeInUpAnimation(); break; case "fadeindown": animationDefinition = new FadeInDownAnimation(); break; case "fadeoutleft": animationDefinition = new FadeOutLeftAnimation(); break; case "fadeoutright": animationDefinition = new FadeOutRightAnimation(); break; case "fadeoutup": animationDefinition = new FadeOutUpAnimation(); break; case "fadeoutdown": animationDefinition = new FadeOutDownAnimation(); break; case "bouncein": animationDefinition = new BounceInAnimation(); break; case "bounceout": animationDefinition = new BounceOutAnimation(); break; case "bounceinleft": animationDefinition = new BounceInLeftAnimation(); break; case "bounceinright": animationDefinition = new BounceInRightAnimation(); break; case "bounceinup": animationDefinition = new BounceInUpAnimation(); break; case "bounceindown": animationDefinition = new BounceInDownAnimation(); break; case "bounceoutleft": animationDefinition = new BounceOutLeftAnimation(); break; case "bounceoutright": animationDefinition = new BounceOutRightAnimation(); break; case "bounceoutup": animationDefinition = new BounceOutUpAnimation(); break; case "bounceoutdown": animationDefinition = new BounceOutDownAnimation(); break; case "scalein": animationDefinition = new ScaleInAnimation(); break; case "scaleout": animationDefinition = new ScaleOutAnimation(); break; case "lightspeedinleft": animationDefinition = new LightSpeedInLeftAnimation(); break; case "lightspeedinright": animationDefinition = new LightSpeedInRightAnimation(); break; case "lightspeedoutleft": animationDefinition = new LightSpeedOutLeftAnimation(); break; case "lightspeedoutright": animationDefinition = new LightSpeedOutRightAnimation(); break; case "hinge": animationDefinition = new HingeAnimation(); break; case "reset": animationDefinition = new ResetAnimation(); break; } } return(animationDefinition); }