//when the player selected yes //resets scene informations and go to the title public void goTitle() { GlobalControl gc = GameObject.Find("GlobalControl").GetComponent <GlobalControl>();//find the GlobalControl object gc.reset(); SceneManager.LoadScene("title"); }