unity switch scene by name code example
Example 1: how do you switch scenes
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
Example 2: change scene unity
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);