Пример #1
0
 private void Awake()
 {
     _death            = GetComponent <Death>();
     _mover            = GetComponent <Mover>();
     _health           = GetComponent <Health>();
     _recycleSpawn     = GetComponent <AsteroidRecycleSpawn>();
     _desiredDirection = transform.right;
 }
Пример #2
0
        public GameOver(GameFactory gameFactory, Death playerDeath)
        {
            _gameFactory = gameFactory;
            _playerDeath = playerDeath;

            _playerDeath.Happened += OnPlayerDeathDied;
            Time.timeScale         = 1f;
        }
Пример #3
0
 private void Awake() =>
 _death = GetComponent <Death>();