Exemple #1
0
 public InputController(IUserInputProxy horizontal, IUserInputProxy vertical, IUserFireInputProxy fire)
 {
     CanExecute  = true;
     _horizontal = horizontal;
     _vertical   = vertical;
     _fire       = fire;
 }
 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;
 }