fix IsDead method to check for zero or less health

This commit is contained in:
2026-05-05 22:20:10 +02:00
parent 121b428b97
commit 0ed86cf73a
+1 -1
View File
@@ -34,7 +34,7 @@ public class ZombieController : MonoBehaviour
private AudioSource audioSource;
private float lastSfxPlay;
private bool IsDead() => currentHealth == 0;
private bool IsDead() => currentHealth <= 0;
private void Start()
{