Method OnPause OnPause() Implement to define custom behaviour to be called when the scenario is paused. Declaration protected virtual void OnPause()