title: Level Timer- How to Create Time Limit in Unity?
body: <p>How do I create a GUI script in Unity that will restart level at a certain amount of seconds, so the level is timed? For example at 30 seconds the level restarts or goes back to main menu. </p>
  
  <p>Here is my Timer Script</p>
  
  <p><a href="https://i.stack.imgur.com/aSb77.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aSb77.png" alt="Image"></a></p>
  
  <p>The level that I am on is marked as 0 in the build settings. 
  The Main Menu is a different number.</p>