示例#1
0
    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;
    }
示例#2
0
    public override void InitializeMenu()
    {
        gameOverUIParameters = GetParameters <GameOverUIParameters>();

        playerScoreText.text = gameOverUIParameters.score.ToString();
    }