/// <summary> /// Releases unmanaged objects and unregisters events /// </summary> public void Dispose() { if (_isEnabled) { _culler.Dispose(); DisposeComputeBuffer(); Aura.OnPreRenderEvent -= Aura_onPreRenderEvent; _isEnabled = false; } }
/// <summary> /// Disposes the members /// </summary> public void Dispose() { ReleaseBuffer(); _culler.Dispose(); }