예제 #1
0
 public WinLoseController(GameObject winScreen, GameObject loseScreen,
                          InputHandlingBlocker inputHandlingBlocker, AudioSource sceneMusicSource,
                          NextFightController nextFightController, PointsController pointsController)
 {
     _winScreen            = winScreen;
     _loseScreen           = loseScreen;
     _inputHandlingBlocker = inputHandlingBlocker;
     _sceneMusicSource     = sceneMusicSource;
     _nextFightController  = nextFightController;
     _pointsController     = pointsController;
 }
예제 #2
0
 public ShootingComponent(CannonSettings settings, InputHandlingBlocker inputHandlingBlocker,
                          Transform cannonTransform, ExplosionObject explosionObject, IInstantiator instantiator, Image aimImage,
                          AudioSource wickAudio, RandomSoundsPlayer shotSoundsPlayer, UnityEvent onShot)
 {
     _settings             = settings;
     _inputHandlingBlocker = inputHandlingBlocker;
     _cannonTransform      = cannonTransform;
     _shotSoundsPlayer     = shotSoundsPlayer;
     _onShot                 = onShot;
     _reloadComponent        = new ReloadComponent(_settings);
     _powerChargingComponent = new ShotPowerChargingComponent(_settings, aimImage, wickAudio);
     _explosionComponent     = new ExplosionComponent(explosionObject, instantiator, _settings);
 }
예제 #3
0
 public void SetUp(Camera mainCamera, InputHandlingBlocker inputHandlingBlocker, IInstantiator instantiator)
 {
     _rotationComponent = new RotationComponent(mainCamera, transform);
     _shootingComponent = new ShootingComponent(_cannonSettings, inputHandlingBlocker,
                                                transform, _explosionObject, instantiator, _aimImage, _wickAudio, _shotsSoundPlayer, _onShot);
 }