public static void Draw(this SpriteBatch spriteBatch, SpriteSheetAnimator animator) { if (animator == null) throw new ArgumentNullException("animator"); if (animator.Sprite != null) Draw(spriteBatch, animator.Sprite); }
public static void Draw(this SpriteBatch spriteBatch, SpriteSheetAnimator animator) { if (animator == null) { throw new ArgumentNullException(nameof(animator)); } if (animator.IsPlaying && animator.Sprite != null) { Draw(spriteBatch, animator.Sprite); } }
public static void Draw(this SpriteSheetAnimator animator, SpriteBatch spriteBatch) { Draw(spriteBatch, animator); }