private void OnDestroy() { EditorSceneManager.newSceneCreated -= OnNewScene; EditorSceneManager.sceneOpened -= OnSceneOpened; GlobalEditorHandler.CourseWindowClosed(this); }