public void Draw(SpriteBatch spriteBatch, Vector2 position) { TextureAnimationFrame frame = CurrentFrame; if (frame != null) { spriteBatch.Draw(frame.Texture, position, Color.White); } }
public void AddFrame(Texture2D texture, float timeStamp) { TextureAnimationFrame frame = new TextureAnimationFrame(texture, timeStamp); _frames.Add(frame); }