Fixed small issues found in playtesting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user