public void StartGame(IGameScoreDisplay _scoreDisplayer) { boardLevels?.StartBoardLevelManager(_scoreDisplayer); boardInteractor?.ApplySettings(boardLevels?.CurrentLevel); boardInteractor?.StartBoardInteractor(); }
public void StartBoardLevelManager(IGameScoreDisplay _scoreDisplayer) { scoreDisplayer = _scoreDisplayer; levelIndex = 0; loadedSettings = levels[levelIndex]; boardScoreCalculator = new BoardHighscoreCalculator(); boardScoreCalculator.OnUpdateScoreAction = OnUpdateScoreHandler; boardScoreCalculator.OnUpdateHighScoreAction = OnUpdateHighScoreHandler; boardScoreCalculator.InitializeCalculator(0); Debug.Assert(levels.Length > 0, "Levels not loaded"); scoreDisplayer?.SetLevel(CurrentLevel.Level); progressVisual?.ClearBorders(); }
public void RestartGame(IGameScoreDisplay _scoreDisplayer) { StartGame(_scoreDisplayer); }