예제 #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();
        }
예제 #2
0
 public void OnDestroy()
 {
     if (transformMonitor != null)
     {
         transformMonitor.Release();
     }
     transformMonitor = null;
     pointReference   = null;
 }
예제 #3
0
 public void Dispose()
 {
     if (Math != null)
     {
         Math.Dispose();
     }
     if (transformMonitor != null)
     {
         transformMonitor.Release();
     }
 }