Exemplo n.º 1
0
        private void OnDisable()
        {
            if (listeningToEvents)
            {
                listeningToEvents = false;
                DrawGUI.CancelOnEveryBeginOnGUI(OnBeginOnGUI);

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