//animation
 void TransitionToBoard()
 {
     animating = true;
     StartCoroutine(boardFlipUpAnimation.AnimationCoroutine(board, flipRotation, Vector3.zero, AnimationDuration, boardOriginalPivot, boardAnimationPivot));
     StartCoroutine(mainFlipDownAnimation.AnimationCoroutine(mainMenu, Vector3.zero, flipRotation, AnimationDuration, mainMenuOriginalPivot, mainMenuAnimationPivot));
     Invoke("RestoreAnimating", AnimationDuration);
 }
Example #2
0
 //animation
 void FlipToEraFromSong()
 {
     animating = true;
     StartCoroutine(flipOutAnimation.AnimationCoroutine(
                        currSongBoard.rectTransform,
                        Vector3.zero,
                        verticalFlip,
                        FlipAnimationDuration,
                        currSongBoard.rectTransform.pivot,
                        bottomEdgePivot
                        ));
     StartCoroutine(flipInAnimation.AnimationCoroutine(
                        eraBoardTransform,
                        verticalFlip,
                        Vector3.zero,
                        FlipAnimationDuration,
                        eraBoardTransform.pivot,
                        topEdgePivot
                        ));
     Invoke("RestoreAnimating", FlipAnimationDuration);
 }