public FireController(IDirected player, IUserFireInputProxy fireInput, BulletData data, IBulletFactory bulletFactory) { CanExecute = true; _player = player; _fireInput = fireInput; _playerTransform = player.GetPosition(); _data = data; _fireInput.FireOnEnable += FireInput; _currentCooldown = 0; _bulletFactory = bulletFactory; _playerBullets = new PlayerBullets(); _fire = false; }
public BulletFactory(BulletData data) { _data = data; }