Exemple #1
0
 public void Reset()
 {
     _frame = 0;
     CurrentFrame = (Frames.Count > 0) ? Frames[_frame] : null;
 }
Exemple #2
0
        /// <summary>
        /// Gets and returns the next frame
        /// </summary>
        /// <returns></returns>
        public Frame Next()
        {
            _frame++;
            if (_frame >= Frames.Count)
                _frame = 0;

            CurrentFrame = Frames[_frame];

            return CurrentFrame;
        }