private State GetNextState(StateTransition transition) { if (transition == null) { return(null); } return(transition.GetToState()); }