public PlayerDirectionHandler(
     Camera mainCamera,
     PlayerModel player)
 {
     _player = player;
     _mainCamera = mainCamera;
 }
        public void Construct(PlayerModel model, EnemyKilledSignal enemyKilledSignal)
        {
            _model = model;

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

            enemyKilledSignal.Event += OnEnemyKilled;
        }
 public PlayerMoveHandler(
     PlayerInputState inputState,
     PlayerModel player,
     Settings settings)
 {
     _settings = settings;
     _player = player;
     _inputState = inputState;
 }
 public PlayerHealthWatcher(
     PlayerModel model,
     Explosion.Factory explosionFactory,
     PlayerKilledSignal.Trigger killedSignal)
 {
     _killedSignal = killedSignal;
     _explosionFactory = explosionFactory;
     _model = model;
 }
 public PlayerShootHandler(
     PlayerInputState inputState,
     Bullet.Factory bulletFactory,
     Settings settings,
     PlayerModel player)
 {
     _player = player;
     _settings = settings;
     _bulletFactory = bulletFactory;
     _inputState = inputState;
 }
 public PlayerBulletHitHandler(
     PlayerModel model,
     Settings settings,
     AudioPlayer audioPlayer,
     PlayerSignals.Hit hitSignal)
 {
     _hitSignal = hitSignal;
     _audioPlayer = audioPlayer;
     _settings = settings;
     _model = model;
 }
Exemple #7
0
 public void Construct(PlayerModel player)
 {
     _model = player;
 }