Example #1
0
 public void Draw(SpriteBatch spriteBatch, Vector2 position)
 {
     if (_texture != null)
     {
         var texture = _texture.GetFrame(CurrentFrameIndex);
         if (texture == null)
         {
             return;
         }
         spriteBatch.Draw(
             texture,
             position,
             Color.White);
     }
 }