Esempio n. 1
0
        public static void Draw(this SpriteBatch spriteBatch, SpriteSheetAnimator animator)
        {
            if (animator == null) throw new ArgumentNullException("animator");

            if (animator.Sprite != null)
                Draw(spriteBatch, animator.Sprite);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 public static void Draw(this SpriteSheetAnimator animator, SpriteBatch spriteBatch)
 {
     Draw(spriteBatch, animator);
 }