Ejemplo n.º 1
0
        void OnDestroy()
        {
            Inst = null;

            // 场景主界面
            if (m_sceneWindow != null)
            {
                m_sceneWindow.CloseWindow();
            }
            m_sceneWindow = null;

            // 事件关闭
            SceneView.onSceneGUIDelegate   -= OnSceneGUI;
            EditorSceneManager.sceneOpened -= OnSceneOpened;
        }