/// <summary> /// Disposes this object. /// </summary> /// <param name="disposing"> /// True if this method was called as part of the Dispose method. /// </param> protected virtual void Dispose(bool disposing) { if (disposing) { lock (this) { if (starfield != null) { starfield.Dispose(); starfield = null; } } } }
/// <summary> /// Disposes this object. /// </summary> /// <param name="disposing"> /// True if this method was called as part of the Dispose method. /// </param> protected virtual void Dispose(bool disposing) { if (disposing) { lock (this) { if (bloomComponent != null) { bloomComponent.Dispose(); bloomComponent = null; } if (starfield != null) { starfield.Dispose(); starfield = null; } } } }