Exemplo n.º 1
0
        public void Initialize()
        {
            Physics.gravity = Vector3.zero;

            Cursor.visible = false;

            _shipCrashedSignal += OnShipCrashed;
        }
Exemplo n.º 2
0
 public GameController(
     Ship ship, AsteroidManager asteroidSpawner,
     ShipCrashedSignal shipCrashedSignal)
 {
     _shipCrashedSignal = shipCrashedSignal;
     _asteroidSpawner   = asteroidSpawner;
     _ship = ship;
 }
Exemplo n.º 3
0
 public GameController(
     Ship ship, AsteroidManager asteroidSpawner,
     ShipCrashedSignal shipCrashedSignal)
 {
     _shipCrashedSignal = shipCrashedSignal;
     _asteroidSpawner   = asteroidSpawner;
     _ship = ship;
     Debug.Log("GameController Construct");
 }
Exemplo n.º 4
0
 public AudioHandler(
     AudioSource audioSource,
     Settings settings,
     ShipCrashedSignal shipCrashedSignal)
 {
     _shipCrashedSignal = shipCrashedSignal;
     _settings          = settings;
     _audioSource       = audioSource;
 }
Exemplo n.º 5
0
 public ShipStateDead(
     Settings settings, Ship ship,
     ExplosionFactory explosionFactory,
     BrokenShipFactory brokenShipFactory,
     ShipCrashedSignal shipCrashedSignal)
 {
     _shipCrashedSignal = shipCrashedSignal;
     _brokenShipFactory = brokenShipFactory;
     _explosionFactory  = explosionFactory;
     _settings          = settings;
     _ship = ship;
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     _shipCrashedSignal -= OnShipCrashed;
 }
Exemplo n.º 7
0
 public void Construct(
     GameController gameController, ShipCrashedSignal shipCrashedSignal)
 {
     _gameController    = gameController;
     _shipCrashedSignal = shipCrashedSignal;
 }
Exemplo n.º 8
0
 public void Initialize()
 {
     _shipCrashedSignal += OnShipCrashed;
 }