public void Initialize()
        {
            _textureForeground = CreateColorTexture(_foregroundColor);
            _textureBackground = CreateColorTexture(_backgroundColor);

            _enemyKilledSignal += OnEnemyKilled;
        }
Esempio n. 2
0
        public void Construct(PlayerModel model, EnemyKilledSignal enemyKilledSignal)
        {
            _model = model;

            _textureForeground = CreateColorTexture(_foregroundColor);
            _textureBackground = CreateColorTexture(_backgroundColor);

            enemyKilledSignal.Event += OnEnemyKilled;
        }
        public void Construct(PlayerModel model, EnemyKilledSignal enemyKilledSignal)
        {
            _model = model;

            _textureForeground = CreateColorTexture(_foregroundColor);
            _textureBackground = CreateColorTexture(_backgroundColor);

            enemyKilledSignal.Event += OnEnemyKilled;
        }
Esempio n. 4
0
        public void Construct(Player player, EnemyKilledSignal enemyKilledSignal)
        {
            _player = player;

            _textureForeground = CreateColorTexture(_foregroundColor);
            _textureBackground = CreateColorTexture(_backgroundColor);

            enemyKilledSignal += OnEnemyKilled;
        }
 public EnemyHealthWatcher(
     EnemyModel model,
     Context context,
     Explosion.Factory explosionFactory,
     EnemyKilledSignal killedSignal)
 {
     _killedSignal     = killedSignal;
     _explosionFactory = explosionFactory;
     _context          = context;
     _model            = model;
 }
Esempio n. 6
0
 public EnemyHealthWatcher(
     EnemyModel model,
     Context context,
     Explosion.Factory explosionFactory,
     EnemyKilledSignal.Trigger killedSignal)
 {
     _killedSignal = killedSignal;
     _explosionFactory = explosionFactory;
     _context = context;
     _model = model;
 }
Esempio n. 7
0
 public override void OnRemove()
 {
     MoveAxisSignal.RemoveListener(OnMoveAxisSignal);
     LookAxisSignal.RemoveListener(OnLookAxisSignal);
     FireButtonSignal.RemoveListener(OnFireButtonSignal);
     UltimateButtonSignal.RemoveListener(OnUltimateButtonSignal);
     EnemyKilledSignal.RemoveListener(OnEnemyKilled);
     View.PlayerKilled  -= OnPlayerKilled;
     View.UltimateUsed  -= OnUltimateUsed;
     View.HealthChanged -= OnHealthchanged;
     View.EnergyChanged -= OnEnergyChanged;
 }
Esempio n. 8
0
        public EnemySpawner(
            Settings settings,
            EnemyFacade.Pool enemyFactory,
            LevelBoundary levelBoundary,
            EnemyKilledSignal enemyKilledSignal)
        {
            _enemyKilledSignal = enemyKilledSignal;
            _levelBoundary     = levelBoundary;
            _enemyFactory      = enemyFactory;
            _settings          = settings;

            _desiredNumEnemies = settings.NumEnemiesStartAmount;
        }
Esempio n. 9
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;
 }
Esempio n. 10
0
 private void OnEnemyKilled(EnemyType enemyType, bool afterRecochet)
 {
     EnemyKilledSignal.Dispatch(enemyType, afterRecochet);
 }
Esempio n. 11
0
 public void Initialize()
 {
     _enemyKilledSignal += OnEnemyKilled;
 }
 public void Dispose()
 {
     _enemyKilledSignal -= OnEnemyKilled;
 }
 public void Construct(PlayerModel model, EnemyKilledSignal enemyKilledSignal)
 {
     _model             = model;
     _enemyKilledSignal = enemyKilledSignal;
 }
Esempio n. 14
0
 private void OnEnemyKilled(EnemyKilledSignal signal)
 {
     _fogManager.GrantTime(signal.Enemy.SecondsWorth);
 }