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

@@ -24,6 +24,9 @@ public class GameManager : MonoBehaviour
private bool hasCountedDown = false;
void Start()
{
AudioSource backgroundMusic = GameObject.Find("Car Data").GetComponent<AudioSource>();
backgroundMusic.Stop();
// reset laps
playerLaps = new int[players.Count()];
playerTimes = new float[players.Count()];