Attaching this script to an object will move it to the DontDestroyOnLoad scene in the Hierarchy causing it to survive scene changes.