Ejemplo n.º 1
0
 public void startAnimation(Animation animation)
 {
     _animation = animation;
     _animation.Start(this);
 }
Ejemplo n.º 2
0
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (_animation != null)
            {
                _animation.Update(gameTime);

                if (_animation.IsFinished)
                    _animation = null;
            }
        }