public override void HandleInput(InputState input) { base.HandleInput(input); if (input.IsNewKeyPress(Keys.X) || input.IsNewKeyPress(Keys.Z) || input.IsNewKeyPress(Keys.Left) ) { ViewManager.Characters.ForEach(character => character.StatusVisible = false); ViewManager.Enemies.ForEach(enemy => enemy.Disappear()); ControllerManager.Controller = new LeaveController(ControllerManager); } }
public override void HandleInput(InputState input) { if (input.IsNewKeyPress(Keys.Left)) { walk(); } base.HandleInput(input); }
public override void HandleInput(InputState input) { base.HandleInput(input); if (input.IsNewKeyPress(Keys.Up)) { selectView.SelectPrevious(); } if (input.IsNewKeyPress(Keys.Down)) { selectView.SelectNext(); } if (input.IsNewKeyPress(Keys.X)) { selectTarget(); } }
public override void HandleInput(InputState input) { base.HandleInput(input); if (input.IsNewKeyPress(Keys.Up)) { SelectUp(); } if (input.IsNewKeyPress(Keys.Down)) { SelectDown(); } if (input.IsNewKeyPress(Keys.Left)) { SelectLeft(); } if (input.IsNewKeyPress(Keys.Right)) { SelectRight(); } if (input.IsNewKeyPress(Keys.X)) { setJob(); } if (input.IsNewKeyPress(Keys.Z)) { exit(); } }