public void SetUpInput() { GameAction fire = new GameAction( this, this.GetType().GetMethod("Fire"), new object[0]); GameAction timeTravel = new GameAction( this, this.GetType().GetMethod("TimeTravel"), new object[0]); InputManager.AddToKeyboardMap(Keys.X, timeTravel); InputManager.AddToKeyboardMap(Keys.F, fire); }
public void SetUpInput() { GameAction moveLeft = new GameAction( this, this.GetType().GetMethod("GoLeft"), new object[0]); GameAction moveRight = new GameAction( this, this.GetType().GetMethod("GoRight"), new object[0]); InputManager.AddToKeyboardMap(Keys.Left, moveLeft); InputManager.AddToKeyboardMap(Keys.Right, moveRight); }