unity scene changing code example
Example 1: change scene unity
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
Example 2: unity scene change
using UnityEngine.SceneManagement;
SceneManager.LoadScene("YourSceneName");
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
using UnityEngine.SceneManagement;
SceneManager.LoadScene("YourSceneName");