So I have this file in my saves file, Another script deletes the file and replaces it with another when triggered causing another script to open a different scene, anyone got an idea?
IEnumerator Start () {
Start:
if (System.IO.File.Exists ("Assets/Saves/original"))
{
SceneManager.LoadScene (72);
}
else
{
yield return new WaitForSeconds(2);
goto Start;
}
}
}
So it loads scene 72 when I press the play button, but when I build and play the game it doesn’t work