Exemplo n.º 1
0
 private void Awake()
 {
     _death            = GetComponent <Death>();
     _mover            = GetComponent <Mover>();
     _health           = GetComponent <Health>();
     _recycleSpawn     = GetComponent <AsteroidRecycleSpawn>();
     _desiredDirection = transform.right;
 }
Exemplo n.º 2
0
        public GameOver(GameFactory gameFactory, Death playerDeath)
        {
            _gameFactory = gameFactory;
            _playerDeath = playerDeath;

            _playerDeath.Happened += OnPlayerDeathDied;
            Time.timeScale         = 1f;
        }
Exemplo n.º 3
0
 private void Awake() =>
 _death = GetComponent <Death>();