Example #1
0
    private void Start()
    {
        _gameInteractor = GameInteractor.Instance;

        _gameInteractor.LivesChanged      += OnGameInteractorOnLivesChanged;
        _gameInteractor.ScoreChanged      += OnGameInteractorOnScoreChanged;
        _gameInteractor.GameFinishingWin  += OnGameInteractorOnGameFinishingWin;
        _gameInteractor.GameFinishingLose += OnGameInteractorOnGameFinishingLose;
        _gameInteractor.NewRoundStarting  += OnGameInteractorNewRoundStarting;

        ScoreLabel.text = "000";
        LivesLabel.text = lives.ToString();
        var bricks = FindObjectsOfType <BrikController>().Length;

        _gameInteractor.NewGame((uint)lives, (uint)bricks);
    }
Example #2
0
 private void Start()
 {
     _gameInteractor = GameInteractor.Instance;
     brick           = brickCreatorMap[BrickType]();
     _material       = GetComponent <Renderer>().material;
 }
Example #3
0
 private void Start()
 {
     _gameInteractor = GameInteractor.Instance;
 }