Small code cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user