Exemplo n.º 1
0
 private void AddRestartControl()
 {
     controlCommands[0] = new Command(() => game.RestartGame());
     controlCommands[0].Add(new KeyTrigger(Key.Space, State.Releasing));
     controlCommands[0].Add(new GamePadButtonTrigger(GamePadButton.A, State.Releasing));
     commandsInUse++;
 }