Update AnimatedSprite.cs