/// <summary> /// Periodically spawns lemmings up to the spawn limit. /// </summary> private void Update() { if (!IsFinished() && portal.IsReady()) { spawnTimer.Run(); } }
/// <summary> /// Checks for input toggling visibility settings. /// </summary> private void Update() { if (InputUtil.GetKey(KeyCode.Tab)) { keyTimer.Run(); } }
/// <summary> /// Checks if the level needs to be refreshed. /// </summary> private void Update() { if (json == null && gameManager.isPlaying) { dirtyTimer.Run(); } }
/// <summary> /// Periodically logs the game state. /// </summary> private void Update() { if (json != null && !stopped) { if (lemmingPositions == null) { lemmingPositions = new List <Vector3> [gameManager.numLemmings]; for (int i = 0; i < lemmingPositions.Length; i++) { lemmingPositions[i] = new List <Vector3>(); } } logTimer.Run(); } }