Here is my script:
DontDestroyOnLoad(gameObject);
function Update()
{
if(Input.GetKey("escape"))
{
Application.LoadLevel("Pause menu");
}
}
My problem is when loading a new scene it just creates a new first person controller and restarts me instead of continuing from the original. and it keeps doing this every time i reload the pause menu until it lags like crazy. so how do i destroy the old one and only use the one that isnt destroyed?