title: How to put a countdown trigger?
body: <p>I just got into Game Dev and I need my script to enable when my player steps a cube trigger, but I don't know how.</p>
  <p>This is the Script that I typed and I can't figure out if I should erase the <code>Void Start</code> or not?</p>
  <pre><code>public class CountdownTimer : MonoBehaviour {
      
      public bool timerIsRunning;
  
      public Text timeText;
  
      public float timeRemaining = 10;
  
      private void Start()
      {
          timerIsRunning = true;
      }
  
      void Update(){
          if (timerIsRunning)
          {
              if (timeRemaining &gt; 0)
              {
                  timeRemaining -= Time.deltaTime;
                  DisplayTime(timeRemaining);
              }
              else
              {
                  Debug.Log(&quot;Time has run out!&quot;);
                  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(&quot;{0:00}:{1:00}&quot;, minutes, seconds);
      }
  }
  </code></pre>