I want to Destroy "Don'tDestroyOnLoad" script in some scenes and recall it on the next scene
Hope i can clear what i want..
for an example: I attached "Don'tDestroyOnLoad" script to empty gameObject that's hold some music .. I want the music to continue playing until the player reach specific scene and then stop the script or destroy it and when i pass the scene i want to recall the music back.
Might help you out... Was thinking when I read the title why you'd use that function... But music does make sense, haha. Hope this helps a little though.
If you feel daring, you could play around with audio.volume and Mathf.Lerp to create a little fading function that is triggered on the AudioSource over time.