onSceneLeave(action: (newScene?: string)=>void): KEventController Register an event that runs when current scene ends.paramaction- The function to run when the event is triggered.returnsThe event controller.sincev3000.0groupEvents