Ejemplo n.º 1
0
 public override void Update(GameTime gameTime)
 {
     if (Keyboard.GetState().IsKeyDown(Keys.Enter))
     {
         Transitioner.To(nameof(RoomScreen));
     }
 }
Ejemplo n.º 2
0
        public override void Update(GameTime gameTime)
        {
            var keyboardState = Keyboard.GetState();

            if (keyboardState.IsKeyDown(Keys.Escape))
            {
                Transitioner.To(nameof(MainMenuScreen));
            }

            Hero.Update(keyboardState);
        }