need JS [proggramer

#pragma strict

var music : AudioSource;

function QuitGame () {
Debug.Log (“Game is exiting…”);
Application.Quit ();
}

function StartGame (level : String) {
SceneManager.LoadScene(“level”, LoadSceneMode.Additive);
}

function SetGameVolume (vol : float) {
music.volume = vol;
}

it is line 11 Scene Manger

unknown idenifier SceneManger and LoadSceneMode.

Use code tags:

Why did this require 3 posts?

And lastly, you need to import the UnityEngine.SceneManagement namespace:

3 Likes