private void HandleHit() { if (lifes.LoseLife()) { gameManager.Events.EventDeath(); } }
private void HandleHit() { SoundHit.Play(); if (lifes.LoseLife()) { SoundDeath.Play(); Events.EventDeath(); } }
private void HandleDodged() { MinigameManager.Events.EventScored(); // All lives are lost if (enemyLifes.LoseLife()) { Destroy(currentEnemy); currentEnemy = spawnRandomEnemy(); enemyLifes.ResetLifes(); } }