I’m making a Game and I’m struggling with making the Scene Restart when the Player Collides with Certain Objects.
I already searched for this Question many Times but I didn’t seem to find anything, that works.
I hope you guys can help me.
EDIT: Please also tell me, if I should attach your Script to the Player or to the Deadly Obstacles?
I’m using 2D.
1 Answer
1If you are trying to load the same scene, just use SceneManager.LoadScene("CurrentSceneName");
But if you are trying to load from a check point, then you should implement a saving mechanism to spawn your player at desired position and other game objects too.
You should avoid reloading a scene anyway. Resetting default states is always much faster than reloading the scene.
– UnityCoach