Пример #1
0
        public void Drew(SpriteBatch spriteBatch, Vector2 position)
        {
            SpriteAnimationFraem frame = CurrentFrame;

            if (frame != null)
            {
                frame.Sprite.Drew(spriteBatch, position);
            }
        }
Пример #2
0
        public void AddFrame(Sprite sprite, float timeStamp)
        {
            SpriteAnimationFraem frame = new SpriteAnimationFraem(sprite, timeStamp);

            _frames.Add(frame);
        }