Updated art assets
This commit is contained in:
@@ -16,6 +16,8 @@ namespace InterfaceOff.WorldScene
|
||||
[field: SerializeField] public int FrameIndex { get; private set; }
|
||||
[SerializeField] private int[] DeathIndices;
|
||||
|
||||
private const int MAX_WINDOWS = 20;
|
||||
|
||||
private bool PlayerAlive = true;
|
||||
private float LerpValue;
|
||||
|
||||
@@ -33,7 +35,7 @@ namespace InterfaceOff.WorldScene
|
||||
/* Iterates the frame index */
|
||||
FrameIndex = (FrameIndex + 1) % (Frames.Length - 2);
|
||||
|
||||
if (DeathIndices.Contains(FrameIndex) && ActiveWindowSpawner.SpawnedWindowCount > 20)
|
||||
if (DeathIndices.Contains(FrameIndex) && ActiveWindowSpawner.SpawnedWindowCount > MAX_WINDOWS)
|
||||
{
|
||||
ActiveWindowSpawner.StartEndSequence();
|
||||
PlayerAlive = false;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.IO;
|
||||
|
||||
namespace InterfaceOff
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user