Skip to content
Snippets Groups Projects
Commit 915eff22 authored by maikeljh's avatar maikeljh
Browse files

[Fix] Score

parent fcaaf909
Branches
Tags
No related merge requests found
......@@ -563,7 +563,7 @@ namespace Nightmare
EnemyHealth enemyHealth = enemy.GetComponent<EnemyHealth>();
// Check if the EnemyHealth component exists
if (enemyHealth != null)
if (enemyHealth != null && enemyHealth.currentHealth > 0)
{
// Set the current health of the enemy to 0
enemyHealth.currentHealth = 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment