When I try to change from scene to another scene
clip doesn’t work when i change to the second scene
i mean like when i go to the second scene the clip is changing put i can’t hear anything
the volume is 100 but there is nothing to hear
public GameObject SoundManager;
public AudioClip Menu;
public AudioClip Game;
public AudioSource Sound;
void Start()
{
DontDestroyOnLoad(SoundManager);
Sound = GetComponent<AudioSource>();
}
void Update()
{
if (SceneManager.GetActiveScene().name == "game")
{
Sound.clip = Game;
}
else if (SceneManager.GetActiveScene().name == "menu")
{
Sound.clip = Menu;
}
}