Example #1
0
        public override void Update(GameTime gameTime)
        {
            int total_anim = _animaciones.Count;

            for (int i = 0; i < total_anim; i++)
            {
                AnimacionBase ab = _animaciones [i];
                if (ab.IsEnded)
                {
                    _animaciones.RemoveAt(i);
                    total_anim--;
                    i--;
                    continue;
                }

                ab.Update(gameTime);
            }

            base.Update(gameTime);
        }
Example #2
0
 public void AddAnimacion(AnimacionBase animacion)
 {
     animacion.Game     = (DemoPlataformaGame)Game;
     animacion.Universe = _universe;
     _animaciones.Add(animacion);
 }