jt9090
1
#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;
}
jt9090
2
it is line 11 Scene Manger
jt9090
3
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