public GameplayController(ILevelSetter levelSetter, IEnemyController enemyController, IHealthController healthController, IGoldController goldController, ITowerController towerController, IObjectPooler objectPooler) { _levelSetter = levelSetter; _enemyController = enemyController; _healthController = healthController; _goldController = goldController; _towerController = towerController; _objectPooler = objectPooler; _healthController.HealthIsZero += EndGame; }
public void SetCallbacks(IGoldController goldController) { goldController.GoldChanged += SetGold; }
public TowerController(IObjectPooler objectPooler, IGoldController goldController) { _goldController = goldController; _objectPooler = objectPooler; _objectPooler.NewObjectCreated += SubscribeToNewTowers; }