Method StopState
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
StopState(IStateToken<TStateData>)
Stops the state associated with the token. The token must be one that was returned when the state was started.
public void StopState(IStateToken<TStateData> token)
Parameters
token
IStateToken<TStateData>The token of the state to stop.
Exceptions
- ArgumentNullException
token
- InvalidOperationException
The given token is not from this state tracker or the given token is not active