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

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

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