Beispiel #1
0
        public override void Update(GameTime gameTime)
        {
            if (_menuButton.Clicked())
            {
                ScreenManager.GotoScreen(new MenuScreen());
            }

            base.Update(gameTime);
        }
Beispiel #2
0
        public override void Update(GameTime gameTime)
        {
            if (_startButton.Clicked())
            {
                ScreenManager.GotoScreen(new LevelOneGameScreen());
            }

            if (_exitButton.Clicked() || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                ShooterTutorialGame.QuitGame = true;
                return;
            }

            base.Update(gameTime);
        }