Exemplo n.º 1
0
 /// <summary>
 /// Makes sure that the currently active game state calls HandleInput.
 /// </summary>
 /// <param name="inputHelper">The input helper to use.</param>
 public void HandleInput(InputHelper inputHelper)
 {
     if (currentGameState != null)
     {
         currentGameState.HandleInput(inputHelper);
     }
 }
Exemplo n.º 2
0
 public void HandleInput(GameTime gameTime)
 {
     _current.HandleInput(gameTime);
 }
 public void HandleInput(InputHelper inputHelper)
 {
     currentGameState?.HandleInput(inputHelper);
 }