public async Task StartAsync(CancellationToken cancellationToken) { while (true) { var input = _inputHandler.GetInput(); _displayManager.Draw(_game, _scoreManager); await Task.Delay(TimeSpan.FromMilliseconds(16.67), cancellationToken); } }
public async Task StartAsync(CancellationToken cancellationToken) { while (true) { var input = _inputHandler.GetInput(); _displayManager.Draw(_game, _scoreManager); await Task.Delay(TimeSpan.FromMilliseconds(16.67), cancellationToken); } }