예제 #1
0
        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);
        }
예제 #2
0
 public LoopController(CanvasController canvasController)
 {
     this.canvasController = canvasController;
 }