Code for switching between scenes in unity code example
Example: switch between scenes unity
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');