void OnDisable()
 {
     DisableToolbar();
     Undo.undoRedoPerformed   -= UndoRedoPerformed;
     SceneView.beforeSceneGui -= BeforeSceneGUI;
     pathEditor.Destroy();
     computerEditor.Destroy();
     debugEditor.Destroy();
     triggersEditor.Destroy();
 }
Esempio n. 2
0
        void OnDisable()
        {
            Undo.undoRedoPerformed -= UndoRedoPerformed;
#if UNITY_2019_1_OR_NEWER
            SceneView.beforeSceneGui -= BeforeSceneGUI;
#else
            SceneView.onSceneGUIDelegate -= BeforeSceneGUI;
#endif
            pathEditor.Destroy();
            computerEditor.Destroy();
            debugEditor.Destroy();
            triggersEditor.Destroy();
        }