Small code cleanup

This commit is contained in:
2026-01-15 17:27:52 +00:00
parent 08bde0da45
commit 6fb0c358e1
3 changed files with 15 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ namespace InterfaceOff
return;
}
/* Makes sure the WindowInteractions and WindowComponents are setup before passing to user code */
/* Makes sure the WindowInteractions and WindowComponents are set up before passing to user code */
windowBase.Interactions = go.GetComponent<WindowInteractions>();
windowBase.Interactions.SetAttachedTo(windowBase);
@@ -88,8 +88,8 @@ namespace InterfaceOff
if (AutoSpawn)
{
const int TICKS_PER_SECOND = 20;
const int MINIMUM_SPAWN_TIME = 2 * 20;
const int MAXIMUM_SPAWN_TIME = 5 * 20;
const int MINIMUM_SPAWN_TIME = 2 * TICKS_PER_SECOND;
const int MAXIMUM_SPAWN_TIME = 5 * TICKS_PER_SECOND;
/* Decreases the spawn counter and spawns if at 0 */
SpawnCounter = Math.Max(0, SpawnCounter - 1);