private void GetNewPhraseFromList() { if (phrasesList.Count <= 0) { var gameOverParameters = new GameOverUIParameters(playerScore); UIController.LoadMenu(gameOverMenu, gameOverParameters); return; } currentPhraseIndex = Random.Range(0, phrasesList.Count); activePhrase = phrasesList[currentPhraseIndex]; phrasesList.RemoveAt(currentPhraseIndex); activePhraseText.text = activePhrase; vowelCount = AWSCalculateVowels(); timeElapsed = countDownTime; }
public override void InitializeMenu() { gameOverUIParameters = GetParameters <GameOverUIParameters>(); playerScoreText.text = gameOverUIParameters.score.ToString(); }