unity changescenes code example
Example 1: how do you switch scenes unity
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
Example 2: how to change scenes in unity
SceneManager.LoadScene(scenename);
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
SceneManager.LoadScene(scenename);