void Update()
{
if (SceneManager.GetActiveScene () == SceneManager.GetSceneByName ("scene1"))
{
SceneManager.LoadScene ("scene2");
}
else if (SceneManager.GetActiveScene () == SceneManager.GetSceneByName ("scene2"))
{
SceneManager.LoadScene ("scene1");
}
}