public virtual void Dispose() { if (HitObjectManager != null) { HitObjectManager.Dispose(); HitObjectManager = null; } }
protected override void Dispose(bool disposing) { KeyboardHandler.OnKeyPressed -= GameBase_OnKeyPressed; hitObjectManager.Dispose(); spriteManager.Dispose(); base.Dispose(disposing); }