public void Update(GameTime gameTime) { if (currentState == null) { currentState = defaultState; } if (currentState == null) { return; } FSMState.FSMStates goalType = currentState.CheckTransitions(); ChangeState(goalType); currentState.Update(gameTime); }