Пример #1
0
    private IEnumerator StartPlaySequence(float initialDelay)
    {
        ChangeGameState(GameState.StartPlay);
        ballManager.RestartLevel();
        powerUpManager.RestartLevel();
        playersBatManager.RestartLevel();

        // during this time I want to track the mouse
        yield return(new WaitForSeconds(initialDelay));

        ballManager.AddNewBall();
        levelTimer.StartTimer();
        ChangeGameState(GameState.Playing);
    }