コード例 #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();
 }