public void Apply(IPongGame game) { keyboardInput.Poll(); if (keyboardInput.IsPressed(Key.Escape)) { game.Exit(); } foreach (var playerSlot in game.PlayerSlots) { if (keyboardInput.IsPressed(playerSlot.StartKey)) { game.Join(playerSlot); } } }
public void Start(IPongGame game) { game.Join(game.PlayerSlots[0]); game.Join(game.PlayerSlots[1]); }