Alright so I have my main scene set up, and when I leave to a new scene I want to be able to come back to the old one with my character controller still in the last place is was, here is my current script:
function Update()
{
if(Input.GetKey("escape"))
{
Application.LoadLevel("Pause menu");
}
}
This is the script I tried and had numerous errors with:
function Update()
{
if(Input.GetKey("escape"))
{
Application.LoadLevel("Pause menu");
Application.DontDestroyOnLoad("First Person Controller");
}
}