Пример #1
0
 public EnemyShootController(Enemy enemy, BulletPool bulletPool, Settings settings)
 {
     _enemy         = enemy;
     _bulletPool    = bulletPool;
     _settings      = settings;
     _isAllowFire   = true;
     _shootInterval = UnityEngine.Random.Range(_settings.MinShootInterval, _settings.MaxShootInterval);
 }
Пример #2
0
 public PlayerShootHandler(
     BulletPool bulletPool,
     Settings settings,
     Player player)
 {
     _player     = player;
     _settings   = settings;
     _bulletPool = bulletPool;
 }