示例#1
0
        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;
 }
示例#3
0
 public GameController(
     Ship ship, AsteroidManager asteroidSpawner,
     Signals.ShipCrashed shipCrashedSignal)
 {
     _shipCrashed = shipCrashedSignal;
     _asteroidSpawner = asteroidSpawner;
     _ship = ship;
 }
示例#4
0
 public AudioHandler(
     Signals.ShipCrashed shipCrashed,
     AudioSource audioSource,
     Settings settings)
 {
     _settings    = settings;
     _audioSource = audioSource;
     _shipCrashed = shipCrashed;
 }
示例#5
0
 public AudioHandler(
     Signals.ShipCrashed shipCrashed,
     AudioSource audioSource,
     Settings settings)
 {
     _settings = settings;
     _audioSource = audioSource;
     _shipCrashed = shipCrashed;
 }
示例#6
0
 public ShipStateDead(
     Settings settings, Ship ship,
     Signals.ShipCrashed shipCrashed,
     ExplosionFactory explosionFactory,
     BrokenShipFactory brokenShipFactory)
 {
     _brokenShipFactory = brokenShipFactory;
     _explosionFactory  = explosionFactory;
     _settings          = settings;
     _shipCrashed       = shipCrashed;
     _ship = ship;
 }
示例#7
0
 public void Construct(
     GameController gameController, Signals.ShipCrashed shipCrashed)
 {
     _gameController = gameController;
     _shipCrashed    = shipCrashed;
 }
示例#8
0
 public void Dispose()
 {
     _shipCrashed -= OnShipCrashed;
 }
示例#9
0
 public void Initialize()
 {
     _shipCrashed += OnShipCrashed;
 }
示例#10
0
 public void Construct(
     GameController gameController, Signals.ShipCrashed shipCrashed)
 {
     _gameController = gameController;
     _shipCrashed = shipCrashed;
 }