public void Draw(SpriteBatch spriteBatch, Vector2 position) { SpriteAnimationFrame frame = CurrentFrame; if (frame != null) { frame.Sprite.Draw(spriteBatch, position); } }
public void AddFrame(Sprite sprite, float timeStamp) { SpriteAnimationFrame frame = new SpriteAnimationFrame(sprite, timeStamp); _frames.Add(frame); }