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