private void Awake() { _death = GetComponent <Death>(); _mover = GetComponent <Mover>(); _health = GetComponent <Health>(); _recycleSpawn = GetComponent <AsteroidRecycleSpawn>(); _desiredDirection = transform.right; }
public GameOver(GameFactory gameFactory, Death playerDeath) { _gameFactory = gameFactory; _playerDeath = playerDeath; _playerDeath.Happened += OnPlayerDeathDied; Time.timeScale = 1f; }
private void Awake() => _death = GetComponent <Death>();