Pause(ref TimerState)
Pauses a TimerState, so that it doesn't advance during following updates of the TimerState. The behavior of a TimerState when paused is the same as stopped, the only difference is how other systems interpret those two states.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
Pause(TimerState)
public static void Pause(this ref TimerState timerState)
Parameters
The timer state to pause.
Remarks
TimerState.PlayState becomes TimeControlState.Paused on the next TimerStateExtensions.Update. TimerState.IsPlaying is right away.
false