public void New()
                {
                    _currentFileName       = null;
                    _editorPrefs._fileName = null;
                    _editorPrefs._stateId  = -1;
                    SaveEditorPrefs();

                    StateMachine stateMachine = new StateMachine();

                    SetStateMachine(stateMachine);
                    _timelineEditor.SetTimeline(null);
                    SwitchToStatemachineView();

                    GetEditorWindow().DoRepaint();
                }