Win and loose conditions
This commit is contained in:
parent
804122a3bd
commit
b551c7f012
15 changed files with 193 additions and 122 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