Pause/resume system by setting timescale.
None
State : Run
Event : go to state Pause
Action:Toggle pause
, or Action:Set pause state
with parameter State
to Pause
State Transition : Run to Pause
Store current timescale
Expression:PreTimescale
Set timescale to 0
Trigger Condition:On pause
State : Pause
Event : go to state Run
Action:Toggle pause
, or Action:Set pause state
with parameter State
to Run
State Transition : Pause to Run
Expression:PreTimescale
Condition:On resume