コード例 #1
0
ファイル: GameController.cs プロジェクト: swipswaps/retry-1
 /// <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);
 }