/// <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; } } } }
public virtual void Unload() { SpriteBatch.Dispose(); Starfield.Dispose(); }