Exemple #1
0
    void CountFail()
    {
        fails++;
        st.ChangeTotalFails(1);

        // Are we game over?
        if (fails >= maxFails)
        {
            SceneManager.LoadScene("Game Over", LoadSceneMode.Single);
        }

        //TODO Some fancy graphics thing.

        // Reset the letter streak.
        letterStreak = 0;
        // AND the combo multiplier.
        multiplier = 1;
        UpdateScoreBoard();
    }