Exemple #1
0
        public void OnDisable()
        {
            try
            {
                EditorApplication.update -= OverlayMessage.Check;
            }
            catch (ArgumentException)
            {
                return;
            }

            if (editors != null)
            {
                foreach (var editor in editors)
                {
                    if (editor != null)
                    {
                        editor.OnDisable();
                    }
                }
            }

            if (transformMonitor != null)
            {
                transformMonitor.Release();
            }

            Dispose();
        }
Exemple #2
0
 public void OnDestroy()
 {
     if (transformMonitor != null)
     {
         transformMonitor.Release();
     }
     transformMonitor = null;
     pointReference   = null;
 }
Exemple #3
0
 public void Dispose()
 {
     if (Math != null)
     {
         Math.Dispose();
     }
     if (transformMonitor != null)
     {
         transformMonitor.Release();
     }
 }