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