Ejemplo n.º 1
0
        public void Draw(SpriteBatch spriteBatch, Vector2 position)
        {
            TextureAnimationFrame frame = CurrentFrame;

            if (frame != null)
            {
                spriteBatch.Draw(frame.Texture, position, Color.White);
            }
        }
Ejemplo n.º 2
0
        public void AddFrame(Texture2D texture, float timeStamp)
        {
            TextureAnimationFrame frame = new TextureAnimationFrame(texture, timeStamp);

            _frames.Add(frame);
        }