private void Awake() { _board = new Board(Width, Height, MinMatchSize, new HashSet <int> { 0, 1, 2, 3, 4 }, StageSeed); _board.RandomFillUp(); BoardView.Initialize(_board); BoardView.AllPiecesFell += OnAllPiecesFell; _gameTimer = new GameTimer(); _gameTimer.SetTime(60f); TimerView.Initialize(_gameTimer); _score = new ScoreCounter(_board); ScoreView.Initialize(_score); GameOverScoreView.Initialize(_score); enabled = false; }
public void SetupScore() { titleView.gameObject.SetActive(false); scoreView.gameObject.SetActive(true); scoreView.Initialize(); }