Win and loose conditions
This commit is contained in:
parent
6c42479d6b
commit
48cdc6db05
15 changed files with 191 additions and 120 deletions
|
|
@ -18,6 +18,7 @@ public partial class LoseCheckbox : Area2D
|
|||
if (parent != null && parent is RuntimeZombieData zombieData)
|
||||
{
|
||||
if (zombieData.HP <= 0) return;
|
||||
RuntimeLevelData.Instance.SetLevelState(RuntimeLevelData.LevelStates.Loose);
|
||||
Engine.TimeScale = 1.0;
|
||||
fadeAnimation.Play("fade");
|
||||
GetTree().Paused = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue