Пример #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (Background != null)
     {
         Background.Draw(spriteBatch);
     }
     activeEnemies.ForEach(x => x.Draw(spriteBatch));
     player.Draw(spriteBatch);
     scoreUi.Draw(spriteBatch);
     multiplierUi.Draw(spriteBatch);
     if (paused)
     {
         pauseMenu.Draw(spriteBatch);
     }
     else if (winDelay > 3)
     {
         winMenu.Draw(spriteBatch);
     }
     else if (gameOver)
     {
         gameOverMenu.Draw(spriteBatch);
     }
 }