Exemplo n.º 1
0
 internal void ShipDestroyed()
 {
     _soundManager.ActivateBackgroundMusic(false);
     StopCoroutine(_spawnAsteroidsCR);
     StopCoroutine(_switchDifficultyCR);
     _spawnAsteroids = false;
     _bulletManager.DeactiveAllBullets();
     _asteroidManager.DeactivateAllAsteroids();
     _ship.AcceptInput(false);
     RemoveHealth();
     if (_currentHealth > 0)
     {
         SetUpGameAfterDeath();
     }
     else
     {
         ShowGameOver();
     }
 }