예제 #1
0
    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;
    }
예제 #2
0
파일: UIRoot.cs 프로젝트: atsuas/GunGame-as
 public void SetupScore()
 {
     titleView.gameObject.SetActive(false);
     scoreView.gameObject.SetActive(true);
     scoreView.Initialize();
 }