Skip to content

Instantly share code, notes, and snippets.

@DannyRusnok
Created May 6, 2020 17:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save DannyRusnok/e7d741d055a9ce945e0a558ea8cc732d to your computer and use it in GitHub Desktop.
TransitionToStateMethod
public void TransitionToState(OrderState state)
{
CurrentState = state;
CurrentState.EnterState(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment