public void Remove(Animation a)
 {
     currentAnimations.Remove(a);
 }
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic hereC:\Users\klogan\Desktop\MTM312 Multimedia, Game and Entertainment Systems\Sonic the Plumber\XSonic\Drawing\MovingAnchoredAnimation.cs
            (Services.GetService(typeof(AnimationManager)) as AnimationManager).Clear();
            levelList = LoadLevelList();
            //bonusList = LoadLevelList();//LoadBonusLevelList();
            currentLevelIndex = -1;
            currentBonusLevel = -1;
            player = new Characters.Sonic();
            NextLevel();
            (Services.GetService(typeof(AudioManager)) as AudioManager).LoadContent(Content);  //load all of the songs and fx

            Coin.SpinCoin = (XSonicGame.CurrentGame.Services.GetService(typeof(AnimationManager)) as AnimationManager).Content.Load<Texture2D>("spincoin");
            Animation coinCountAnimation = new Animation(new Point(10, 10), 8, 0, 3, 0, 48, 48, Coin.SpinCoin, true);
            (Services.GetService(typeof(AnimationManager)) as AnimationManager).Add(coinCountAnimation);

            base.Initialize();
        }
 public void Add(Animation a)
 {
     currentAnimations.Add(a);
 }