title: how to continue countdown timer while game is closed?
body: <p>I wanna make the reward countdown, I used this basic code for my countdown but that is not working on the background or when the game is closed, what should I do to continue working while the game is closed?</p>
  
  <pre><code>    float timeRemaining;
      public bool timerIsRunning; //  timeRemaining = Random.Range(15, 55);
      public Text timeText;
  
           void Update()
      {
  
          if (timerIsRunning)
          {
              if (timeRemaining &gt; 0)
              {
                  timeRemaining -= Time.deltaTime;
                  DisplayTime(timeRemaining);
              }
              else
              {
                  timeText.gameObject.SetActive(false);
                  OpenBoxButton.SetActive(true);
                  Debug.Log("Time has run out!");
                  timeRemaining = 0;
                  timerIsRunning = false;                                        
  
              }
          }
         void DisplayTime(float timeToDisplay)
      {
          timeToDisplay += 1;
  
          float minutes = Mathf.FloorToInt(timeToDisplay / 60);
          float seconds = Mathf.FloorToInt(timeToDisplay % 60);
  
          timeText.text = string.Format("{0:00}:{1:00}", minutes, seconds);
      }
  </code></pre>