Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Checks if the level needs to be refreshed.
 /// </summary>
 private void Update()
 {
     if (json == null && gameManager.isPlaying)
     {
         dirtyTimer.Run();
     }
 }
Ejemplo n.º 4
0
 /// <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();
     }
 }