Fixed dead zombies invoking loose animation
This commit is contained in:
parent
281fb4b617
commit
cca9c73942
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ public partial class LoseCheckbox : Area2D
|
|||
var parent = area.GetParent();
|
||||
if (parent != null && parent is RuntimeZombieData zombieData)
|
||||
{
|
||||
if (zombieData.HP <= 0) return;
|
||||
Engine.TimeScale = 1.0;
|
||||
fadeAnimation.Play("fade");
|
||||
GetTree().Paused = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue