public ProjectInfrastructure(MonoBehaviourContainer monoBehaviourContainer) { _monoBehaviourContainer = monoBehaviourContainer; _UIController = new UIController(monoBehaviourContainer.UIView); _targetCicleController = new TargetCicleController(monoBehaviourContainer.TargetCicleFactory); _knifeController = new KnifeController(monoBehaviourContainer.KnifeFactory); _coinBonusController = new CoinBonusController(monoBehaviourContainer.CoinBonusFactory); _gameplayController = new GameplayController(_UIController, _targetCicleController); }
public ProjectInfrastructure(MonoBehaviourContainer monoBehaviourContainer) { _monoBehaviourContainer = monoBehaviourContainer; _tilePool = new TilePool(monoBehaviourContainer.TileFactory); _roadBuilder = new RoadBuilder(_tilePool); _ballController = new BallController(monoBehaviourContainer.BallView); _tileController = new TileController(_roadBuilder); _UIController = new UIController(monoBehaviourContainer.UIView); _gameplayController = new GameplayController(_ballController, _UIController); }