/// <summary> /// Creates the game over transition /// </summary> /// <returns>The game over transition.</returns> U9Transition CreateGameOverTransition() { int previousBestScore = HighScore; U9Transition gameOverViewTransition = null; SubmitScore(); if (Score > HighScore) { HighScore = score; highScoreView.Setup(HighScore); ECurrentView = View.Highscore; } else { newScoreView.Setup(score); ECurrentView = View.Newscore; } // Set the game over flag gameIsOver = true; score = 0; currentScoreLabel.text = "0"; // Return a transition which clears the board and displays the appropriate game over view return(U9T.S(/*CreateClearBoardTransition()*/)); }