//------------------------------------------------------------------------------------ private void StartGame() { scrPlay = new Screen_Play(this, spriteBatch); Components.Add(scrPlay); scrPlay.Hide(); scrPause = new scrPopup(this, spriteBatch, Content.Load <Texture2D>("Graphics/Backgrounds/Pause"), scrPlay, Menu.MenuItems(new PAUSE_OPTIONS())); Components.Add(scrPause); scrPause.Hide(); scrGameOver = new scrPopup(this, spriteBatch, Content.Load <Texture2D>("Graphics/Backgrounds/GameOver"), scrPlay, Menu.MenuItems(new GAMEOVER_OPTIONS())); Components.Add(scrGameOver); scrGameOver.Hide(); }
//------------------------------------------------------------------------------------ private void StartGame() { scrPlay = new Screen_Play(this, spriteBatch); Components.Add(scrPlay); scrPlay.Hide(); scrPause = new scrPopup(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/Pause"), scrPlay, Menu.MenuItems(new PAUSE_OPTIONS())); Components.Add(scrPause); scrPause.Hide(); scrGameOver = new scrPopup(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/GameOver"), scrPlay, Menu.MenuItems(new GAMEOVER_OPTIONS())); Components.Add(scrGameOver); scrGameOver.Hide(); }