V
V
Vasya Pupkin2021-10-03 15:24:55
Unity
Vasya Pupkin, 2021-10-03 15:24:55

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

1 answer(s)
N
NoNameDeveloper, 2021-10-04
@Dimoncheck

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 question

Ask a Question

731 491 924 answers to any question