Answer the question
In order to leave comments, you need to log in
How to restart the level when the player leaves the map?
I recently started making a game, and I need to restart the level when falling from the map into the player’s void, please write a code that can solve this problem
Answer the question
In order to leave comments, you need to log in
Before you ask your question, you need to make an effort and look for an answer, because you are not the only one asking such stupid questions, not for the first time. They already have different answers, to taste, in other languages. Ask in Russian, ask in English, read the documentation. I will not write code for you, here are links to which there are answers, assemble your own constructor.
https://docs.unity3d.com/ScriptReference/Transform...
https://www.reddit.com/r/Unity3D/comments/brsqr6/d...
https://docs.unity3d.com/ScriptReference/ SceneMana...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question