In a game I'm working on, I have a button on the pause menu that allows me to mute and unmute the background music. The toggle button, in the inspector, references the audio manager object and calls the function to update the sound when the button is pressed. This worked well until recently when I made my audio manager persist across all scenes to avoid the music restarting between levels. As a result, when the next scene loads, the audio manager cannot be found by the toggle button (which I would ordinarily have to drag into the toggle button's "On Value Changed" field from the inspector.
Is there a way around this, or am I going to have to make my pause menu persist across all scenes, too? If I do this, then how should I handle scenes like the main menu or game over menu when they don't have pause menu objects?