Here is my YouTube video link for video assistance,
TAG YOUR PLAYER AS “Player”
1: save your scenes and add all current scenes to build by FILE: Build Settings: Add Open Scene(s)
2: Create a C# script with title GameOver or whatever. And open it.
3: you don’t need void start or update so delete them. make a string “private string exitToMainMenu;”
4: follow this code…
void OnTriggerEnter(Collider other)
{
if(other.gameObject.CompareTag("Player"))
{
Application.LoadLevelAdditive(1); //1 is the number in build settings next to your scene just choose a number you want to load and replace 1 with it
}
}
5: put this script on your death barrier or level complete trigger, find mesh settings and set as
Convex, Is Trigger
test it and enjoy