Hey all, how do I have the music running in the background even if the current scene reloads? I’m using this for whenever the player dies / game over. I am using DontDestroyOnLoad(musicManager);
, but that just creates a new music manager, which then will run another music on top of the original music. If anyone have any ideas, please do tell me! Appreciate all advice. Thanks in advance!
Also, this is the code for GameOver() state:
public void GameOver()
{
DontDestroyOnLoad(musicManager);
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}