示例#1
0
    /// <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");
        }
    }
示例#2
0
 public virtual void HandleInput(InputHelper inputHelper)
 {
     CurrentLevel.HandleInput(inputHelper);
 }
示例#3
0
 public override void HandleInput(InputHelper inputHelper)
 {
     base.HandleInput(inputHelper);
     CurrentLevel.HandleInput(inputHelper);
 }