void UpdateHearts() { if (lastHitTime != 0 && Time.time - lastHitTime < showHeartTime) { hearts.Show(); } else { hearts.Hide(); } }