/// <summary> /// <para>Calls the method NextLevel from the PlayerSpawner and the EnemySpawner</para> /// <para>Adds the level score to the score and sets the level score to zero</para> /// <remarks>This method is called when the transition time from the previous level is finished</remarks> /// </summary> /// <param name="level">The number of the new level</param> private void NewLevel(int level) { score += levelScore; UpdateLevelScore(0); scoreUI.UpdateValue(score); playerSpawner.NextLevel(); enemySpawner.NextLevel(level); }