I added all the scenes to the build settings but it still doesn’t work.
I wrote “UnityEngine.SceneManagement.SceneManager.LoadScene” instead of" SceneManager.LoadScene"