// Update is called once per frame
    void Update()
    {
        if (player.IsAlive)
        {
            score.AddScore(scoreToAddEverySecond * Time.deltaTime);
            if (obstacleSpawner1 != null)
            {
                obstacleSpawner1.IncreaseSpawnSpeed(increaseInSpawnSpeedPerSecond * Time.deltaTime);
            }

            // Doubles the player's score
            if (player.ScoreMultiplierEnabled)
            {
                score.AddScore(score.PlayerScore * 2.0f);
                player.ScoreMultiplierEnabled = false;
            }
        }
        else
        {
            GameOver();
        }
    }