Exemplo n.º 1
0
        public override void Update(GameTime gameTime, GameScreenManager screenManager, MainGame game)
        {
            world.Update (gameTime);
            cameraFollow ();
            camera.Update ();

            if (Keyboard.GetState ().IsKeyDown (Keys.P) && prevKeyboardState.IsKeyUp(Keys.P))
                screenManager.PushGameScreen (new PauseMenuScreen (screenManager, game));
            prevKeyboardState = Keyboard.GetState ();
        }