public void Initialize() { Physics.gravity = Vector3.zero; Cursor.visible = false; _shipCrashed += OnShipCrashed; }
public GameController( Ship ship, AsteroidManager asteroidSpawner, Signals.ShipCrashed shipCrashedSignal) { _shipCrashed = shipCrashedSignal; _asteroidSpawner = asteroidSpawner; _ship = ship; }
public AudioHandler( Signals.ShipCrashed shipCrashed, AudioSource audioSource, Settings settings) { _settings = settings; _audioSource = audioSource; _shipCrashed = shipCrashed; }
public ShipStateDead( Settings settings, Ship ship, Signals.ShipCrashed shipCrashed, ExplosionFactory explosionFactory, BrokenShipFactory brokenShipFactory) { _brokenShipFactory = brokenShipFactory; _explosionFactory = explosionFactory; _settings = settings; _shipCrashed = shipCrashed; _ship = ship; }
public void Construct( GameController gameController, Signals.ShipCrashed shipCrashed) { _gameController = gameController; _shipCrashed = shipCrashed; }
public void Dispose() { _shipCrashed -= OnShipCrashed; }
public void Initialize() { _shipCrashed += OnShipCrashed; }