public EnemyDeathHandler(
     EnemyView view,
     AudioPlayer audioPlayer,
     Explosion.Factory explosionFactory,
     Settings settings,
     SignalBus signalBus,
     EnemyFacade facade)
 {
     _facade           = facade;
     _signalBus        = signalBus;
     _settings         = settings;
     _explosionFactory = explosionFactory;
     _audioPlayer      = audioPlayer;
     _view             = view;
 }
Exemple #2
0
 public EnemyDeathHandler(
     Enemy enemy,
     AudioPlayer audioPlayer,
     Explosion.Pool explosionPool,
     Settings settings,
     EnemyFacade.Pool selfFactory,
     GameEvents gameEvents,
     EnemyFacade facade)
 {
     _facade        = facade;
     _gameEvents    = gameEvents;
     _selfFactory   = selfFactory;
     _settings      = settings;
     _explosionPool = explosionPool;
     _audioPlayer   = audioPlayer;
     _enemy         = enemy;
 }
Exemple #3
0
 public EnemyDeathHandler(
     Enemy enemy,
     IAudioPlayer audioPlayer,
     Explosion.Pool explosionPool,
     Settings settings,
     EnemyFacade.Pool selfFactory,
     EnemyFacade facade,
     EnemyKilledSignal enemyKilledSignal)
 {
     _enemyKilledSignal = enemyKilledSignal;
     _facade            = facade;
     _selfFactory       = selfFactory;
     _settings          = settings;
     _explosionPool     = explosionPool;
     _audioPlayer       = audioPlayer;
     _enemy             = enemy;
 }
Exemple #4
0
 public void RemoveEnemy(EnemyFacade enemy)
 {
     _enemies.Remove(enemy);
 }
Exemple #5
0
 public void AddEnemy(EnemyFacade enemy)
 {
     _enemies.Add(enemy);
 }
Exemple #6
0
 public void RemoveEnemy(EnemyFacade facade)
 {
     _enemies.Remove(facade);
 }
Exemple #7
0
 public void AddEnemy(EnemyFacade facade)
 {
     _enemies.Add(facade);
 }