Exemple #1
0
 public BonusController(DisplayEndGame displayEndGame, DisplayBonuses displayBonuses, GameObject restartBotton)
 {
     _bonuses        = new ListInteractiveObject();
     _displayEndGame = displayEndGame;
     _displayBonuses = displayBonuses;
     _restartBotton  = restartBotton;
     Subscription();
 }
Exemple #2
0
        public Factory()
        {
            _reference = new Reference();

            if (_playerType == PlayerType.Ball)
            {
                _player = _reference.PlayerBall;
            }

            new MapFactory();
            new InteractiveObjectFactory();
            new MiniMapFactory();


            _cameraController = new CameraController(_player.transform, _reference.MainCamera.transform);

            _displayEndGame = new DisplayEndGame(_reference.EndGame);
            _displayBonuses = new DisplayBonuses(_reference.Bonuse);

            _reference.RestartButton.onClick.AddListener(RestartGame);
            _reference.RestartButton.gameObject.SetActive(false);

            new BonusController(_displayEndGame, _displayBonuses, _reference.RestartButton.gameObject);
        }