public void TakeDamage(float dmg) { hitSound.Play(); currentHealth -= dmg * defenseMultiplier; theirScore += 1; if (currentHealth <= 0f || theirScore == 11) { Die(); } healthBarController.ScaleBar(currentHealth); textController.TheyScore(); }