Beispiel #1
0
 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;
 }
Beispiel #2
0
 public BulletFactory(BulletData data)
 {
     _data = data;
 }