private void initializeGameObjects() { config = new Config(); playerInfo = new PlayerInfo(); canvasController = new CanvasController(this, gameCanvas, playerInfo, config); loopController = new LoopController(canvasController); startLoopCancellationToken = new CancellationTokenSource(); scoreUpdaterCancellationToken = new CancellationTokenSource(); addNewWordCancellationToken = new CancellationTokenSource(); canvasController.bindCancellationTokens(startLoopCancellationToken, scoreUpdaterCancellationToken, addNewWordCancellationToken); }
public LoopController(CanvasController canvasController) { this.canvasController = canvasController; }