You've already forked zumbi-game
fix IsDead method to check for zero or less health
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user