public void startAnimation(Animation animation) { _animation = animation; _animation.Start(this); }
protected override void Update(GameTime gameTime) { base.Update(gameTime); if (_animation != null) { _animation.Update(gameTime); if (_animation.IsFinished) _animation = null; } }