- Home /
 
               Question by 
               importguru88 · Sep 01, 2016 at 03:37 AM · 
                levelrestartrestart game  
              
 
              How do I restart games with more than one level
I have the code so it goes into the restart scene when the player don't score high enough. I gonna have to two other scene . How do I restart the same level ? I want to do the same with the other levels. I am gonna have more than one restart level.
               Comment
              
 
               
              Answer by LTK · Sep 01, 2016 at 03:52 AM
 SceneManager.LoadScene(SceneManager.GetActiveScene().name);
You can see here: https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.GetActiveScene.html SceneManager.GetActiveScene().name return string name active scene
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                