Exemplo n.º 1
0
 public PlayerShootHandler(
     PlayerInputState inputState,
     Bullet.Pool bulletPool,
     Settings settings,
     Player player,
     AudioPlayer audioPlayer)
 {
     _audioPlayer = audioPlayer;
     _player      = player;
     _settings    = settings;
     _bulletPool  = bulletPool;
     _inputState  = inputState;
 }
Exemplo n.º 2
0
 public EnemyStateAttack(
     Bullet.Pool bulletPool,
     Enemy enemy,
     Settings settings,
     IPlayer player,
     EnemyStateManager stateManager,
     EnemyTunables tunables,
     IAudioPlayer audioPlayer,
     EnemyCommonSettings commonSettings)
 {
     _commonSettings = commonSettings;
     _audioPlayer    = audioPlayer;
     _tunables       = tunables;
     _stateManager   = stateManager;
     _player         = player;
     _settings       = settings;
     _enemy          = enemy;
     _bulletPool     = bulletPool;
     _strafeRight    = Random.Range(0.0f, 1.0f) < 0.5f;
 }