示例#1
0
        private void OnDisable()
        {
            if (listeningToEvents)
            {
                listeningToEvents = false;
                DrawGUI.CancelOnEveryBeginOnGUI(OnBeginOnGUI);

                                #if UNITY_EDITOR
                UnityEditor.Undo.undoRedoPerformed -= DetectUndoneActions;
                                #endif
            }
        }
示例#2
0
 public void Dispose()
 {
     Cursor.OnPositionChanged -= OnCursorPositionChanged;
     DrawGUI.CancelOnEveryBeginOnGUI(OnBeginOnGUI);
     DrawGUI.OnEventUsed -= OnEventUsed;
 }