Пример #1
0
 /// <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);
 }
Пример #2
0
 void Dispose(bool disposing)
 {
     if (disposing && !isDisposed)
     {
         if (animatedSprite != null)
         {
             animatedSprite.Dispose();
             animatedSprite = null;
         }
         if (particle != null)
         {
             particle.Dispose();
             particle = null;
         }
     }
 }