Make a button load the previous scene a player was on?
Hello,
I'm making a 2D Choose Your Own Adventure game, that was set up using multiple scenes. I am having a problem while creating a pause menu, because the player is brought to a new scene dedicated to that, and I was wondering if there was a way to get a continue button to just return the player to the previous scene.
I've got this, although it's not working.
public void ChangeScene (PreviousScene) {
Application.LoadLevel (PreviousScene);
}
}
I appreciate the help, but please bare in mind that I'm relatively new to C#, and may not understand some of the terms you use. Thanks very much if you can help me.
Your answer
Follow this Question
Related Questions
Passing Score from Game Scene to Game Over Scene usiing dontDestroyOnLoad C# 1 Answer
C# SceneManager script not loading next scene after (seconds) 4 Answers
Application.LoadLevel crashes unity 0 Answers
Pre-loading scene and display it only when I want 0 Answers
[SOLVED] How to load next level? 0 Answers