please help

Updated on April 19, 2018 in  [R] Scripts
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on April 19, 2018

please helpas i am a beginner i dont have much knowledge of scripting how to i  make the player restart the game after he collides with one of the obstacles ? Like temple run?

  • Liked by
Reply
0 on April 19, 2018
UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex);

 

  • Liked by
Reply
Cancel