/// <summary> /// Create a new game manager /// </summary> public GameManager(SoundBank soundBank) { sound = soundBank; animatedSprite = new AnimSpriteManager(); projectile = new ProjectileManager(this); particle = new ParticleManager(); powerup = new PowerupManager(this); }
void Dispose(bool disposing) { if (disposing && !isDisposed) { if (animatedSprite != null) { animatedSprite.Dispose(); animatedSprite = null; } if (particle != null) { particle.Dispose(); particle = null; } } }