Example #1
0
 /// <summary>
 /// Update to run each frame
 /// </summary>
 private void Update()
 {
     if (gameState.running)
     {
         if (gameState.firstIteration)
         {
             StartCoroutine(Timers.BoolTimer(stepTime, (boolState) => { canStep = boolState; }));
             StartFires();
             gameState.firstIteration = false;
         }
         if (canStep)
         {
             StartCoroutine(Timers.BoolTimer(stepTime, (boolState) => { canStep = boolState; }));
             IterateFires();
         }
     }
 }