/// <summary> /// Play a state, using an instant transition. The state will immediately be the current played state. /// </summary> /// <param name="state">state index to play</param> /// <param name="layer">Layer the state should be played on</param> public void SnapTo(int state, int layer = 0) { Play(state, TransitionData.Instant(), layer); }
/// <summary> /// Play a state, using an instant transition. The state will immediately be the current played state. /// </summary> /// <param name="state">state index to play</param> /// <param name="layer">Layer the state should be played on</param> public void SnapTo(int state, int layer = 0) { AssertLayerInBounds(layer, state, "Snap to state"); Play(state, TransitionData.Instant(), layer); }