private void UpdateInPlayMode()
                {
                    _debugging = false;

                    if (_editorPrefs._debug)
                    {
                        StateMachineComponent       stateMachine = _editorPrefs._debugObject.GetComponent();
                        StateMachineDebug.StateInfo stateInfo    = StateMachineDebug.GetStateInfo(stateMachine != null ? stateMachine.gameObject : null);

                        if (stateInfo != null)
                        {
                            _debugging = true;

                            if (_currentFileName != stateInfo._fileName && stateInfo._fileName != null)
                            {
                                _currentFileName = stateInfo._fileName;
                                SetStateMachine(stateInfo._stateMachine);
                                _timelineEditor.SetTimeline(null);
                            }

                            switch (_currentMode)
                            {
                            case eMode.ViewingStateMachine:
                            {
                                if (_playModeHighlightedState != stateInfo._state)
                                {
                                    GetEditorWindow().DoRepaint();
                                }

                                _playModeHighlightedState = stateInfo._state;

                                if (_editorPrefs._debugLockFocus)
                                {
                                    CenterCameraOn(GetStateGUI(_playModeHighlightedState._stateId));
                                }
                            }
                            break;

                            case eMode.ViewingTimelineState:
                            {
                                if (stateInfo._state._stateId != _editedTimelineState.GetStateId())
                                {
                                    _editedTimelineState = GetStateGUI(stateInfo._state._stateId) as TimeLineStateEditorGUI;

                                    if (_editedTimelineState != null)
                                    {
                                        _timelineEditor.SetTimeline(((TimelineState)stateInfo._state)._timeline);
                                    }
                                }

                                _timelineEditor.SetPlayModeCursorTime(stateInfo._time);
                                GetEditorWindow().DoRepaint();
                            }
                            break;
                            }
                        }
                    }
                }