fixed background music

This commit is contained in:
2024-04-26 10:25:23 +02:00
parent 083d44e339
commit 3b9ef2ad1b
6 changed files with 120 additions and 100 deletions

View File

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