Exemple #1
0
    public void StartGame()
    {
        if (!gameTimer.gameStarted)
        {
            if (settingsController.gameDifficulty == GameDifficulty.hard)
            {
                backAndForth.Unpause();
            }
            else if (settingsController.gameDifficulty == GameDifficulty.medium)
            {
                backAndForth.Unpause();
                toggleHoopMovementAt = settingsController.gameDuration - toggleHoopInterval;
            }
            else
            {
                backAndForth.Pause();
            }

            gameTimer.countdownAndStart(settingsController.gameDuration);
        }
    }