public ShipWeaponController(IShip ship, Transform bullet, Transform barrel, float bulletSpeed) { _upTimer = new UpTimer(0.0f, 3.0f); _weaponLocker = new ShipWeaponLocker(false); _bulletManager = new BulletManager(bullet, barrel, bulletSpeed, _weaponLocker); ship.ShipAction += ShouldContinueShooting; }
public CruiserBulletManager(IEnemy enemy, Transform bullet, IShip ship, float bulletSpeed) { _bulletSpeed = bulletSpeed; _enemy = enemy; _upTimer = new UpTimer(0.0f, 0.5f); _returnChecker = new TransformCollisionAndReturnChecker(ship); _bulletPull = new BulletPull(bullet); _bullets = new List <Transform>(); }