background music in loading screen

This commit is contained in:
2024-04-26 17:13:17 +02:00
parent 69c51ec879
commit 6e6e1e1bff
7 changed files with 27 additions and 116 deletions

View File

@@ -53,8 +53,6 @@ public class MapSelectorScript : MonoBehaviour
public void SelectMapAndLoadScene()
{
AudioSource backgroundMusic = GameObject.Find("Car Data").GetComponent<AudioSource>();
backgroundMusic.Stop();
SceneManager.LoadScene(scene);
}
}