Fixed small issues found in playtesting

This commit is contained in:
Pasha Bibko
2026-01-29 13:54:10 +00:00
parent 13af242e69
commit 69fd62b3ac
8 changed files with 39 additions and 14 deletions

View File

@@ -22,6 +22,7 @@ namespace InterfaceOff.WorldScene
[SerializeField] private GameObject MovingObject;
[SerializeField] private AudioClip[] AudioClips;
[SerializeField] private AudioSource PlayerAudioSource;
[SerializeField] private HealthBar HealthTracker;
public static void PlayRandomErrorSound()
{
@@ -61,7 +62,7 @@ namespace InterfaceOff.WorldScene
/* Iterates the frame index */
FrameIndex = (FrameIndex + 1) % (Frames.Length - 2);
if (DeathIndices.Contains(FrameIndex) && ActiveWindowSpawner.SpawnedWindowCount > MAX_WINDOWS)
if (DeathIndices.Contains(FrameIndex) && HealthTracker.Health <= 0)
{
ActiveWindowSpawner.StartEndSequence();
PlayerAlive = false;