public override void Update(GameTime I_GameTime) { base.Update(I_GameTime); if (InputManager.KeyPressed(Keys.Escape)) { this.ExitScreen(); } else if (InputManager.KeyPressed(Keys.Enter)) { this.ScreensManager.SetCurrentScreen(new NextLevelTransitionScreen(this.Game)); } else if(InputManager.KeyPressed(Keys.M)) { m_MainmanueScreen = new MainManuScreen(Game); this.ScreensManager.SetCurrentScreen(m_MainmanueScreen); } }
public override void Update(GameTime i_GameTime) { base.Update(i_GameTime); if (InputManager.KeyPressed(Keys.Escape)) { ExitGameOverScreen(); } else if (InputManager.KeyPressed(Keys.Enter)) { ////StartGame this.ScreensManager.SetCurrentScreen(new SpaceInvadersScreen(this.Game)); } else if (InputManager.KeyPressed(Keys.M)) { ////Go to main menu MainManuScreen mainMenuScreen = new MainManuScreen(Game); this.ScreensManager.SetCurrentScreen(mainMenuScreen); } }