Example #1
0
    public void StartGame(IGameScoreDisplay _scoreDisplayer)
    {
        boardLevels?.StartBoardLevelManager(_scoreDisplayer);

        boardInteractor?.ApplySettings(boardLevels?.CurrentLevel);
        boardInteractor?.StartBoardInteractor();
    }
Example #2
0
    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();
    }
Example #3
0
 public void RestartGame(IGameScoreDisplay _scoreDisplayer)
 {
     StartGame(_scoreDisplayer);
 }