From 0ed86cf73a57618535bb98b5d9e7d79ac4881eb9 Mon Sep 17 00:00:00 2001 From: br0kenpixel Date: Tue, 5 May 2026 22:20:10 +0200 Subject: [PATCH] fix `IsDead` method to check for zero or less health --- Assets/Scripts/ZombieController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/ZombieController.cs b/Assets/Scripts/ZombieController.cs index 905fce3..8e62493 100644 --- a/Assets/Scripts/ZombieController.cs +++ b/Assets/Scripts/ZombieController.cs @@ -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() {