/// <summary> /// Handles input, making it able for the player to pause the game /// </summary> public void HandleInput(InputHelper inputHelper) { CurrentLevel.HandleInput(inputHelper); if (inputHelper.KeyPressed(Keys.Space)) { if (FullBrickEpicDungeon.DungeonCrawler.SFX) { GameEnvironment.AssetManager.PlaySound("Assets/SFX/pause"); } FullBrickEpicDungeon.DungeonCrawler.mouseVisible = true; GameEnvironment.GameStateManager.SwitchTo("pauseState"); } if (inputHelper.KeyPressed(Keys.C)) { GameEnvironment.GameStateManager.SwitchTo("conversation"); } }
public virtual void HandleInput(InputHelper inputHelper) { CurrentLevel.HandleInput(inputHelper); }
public override void HandleInput(InputHelper inputHelper) { base.HandleInput(inputHelper); CurrentLevel.HandleInput(inputHelper); }