✅ How to make DontDestroyOnLoad work for only single scene?
Hello! I have a problem. In my game, when I am on my Main Menu Scene and trying to load Main Game Scene with Play button it plays the main menu background music continuously, where I dont want that to happen to more than 1 scene my options scene. When I am pressing options button and load options scene I want to hear that music of main menu to be played on options scene only and not when transitioning between main menu scene and main game scene. On my main game scene I have another scene and I hear it twice like my main game music and main menu music that still persist across all of my scenes when I am loading them.
https://paste.mod.gg/ficinzjtreta/0 UI Manager script
https://paste.mod.gg/htmjkrjitmsg/0 Audio Manager script where handles dont destroy on load
https://paste.mod.gg/ficinzjtreta/0 UI Manager script
https://paste.mod.gg/htmjkrjitmsg/0 Audio Manager script where handles dont destroy on load
A tool for sharing your source code with the world!
A tool for sharing your source code with the world!