Update AnimatedSprite.cs

Log info:
-Update function was updated to a better one.