onSceneLeave(action: (newScene?: string)=>void): KEventControllerRegister an event that runs when current scene ends.since