예제 #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;
         }
     }
 }