private void HandleHit()
 {
     if (lifes.LoseLife())
     {
         gameManager.Events.EventDeath();
     }
 }
Exemplo n.º 2
0
        private void HandleHit()
        {
            SoundHit.Play();

            if (lifes.LoseLife())
            {
                SoundDeath.Play();
                Events.EventDeath();
            }
        }
Exemplo n.º 3
0
 private void HandleDodged()
 {
     MinigameManager.Events.EventScored();
     // All lives are lost
     if (enemyLifes.LoseLife())
     {
         Destroy(currentEnemy);
         currentEnemy = spawnRandomEnemy();
         enemyLifes.ResetLifes();
     }
 }