application.on_scene_exit method
Defines the onExit
handler which triggers before this scene is ended.
Note: This method can be called multiple times to call additional functions on scene exit.
Parameters
-
on_exit: Callable[[], None]
function to call when
Scene
ends.