Ejemplo n.º 1
0
        public void Tick()
        {
            if (!IsPlaying)
            {
                return;
            }

            CurrentFrame += 1;

            if (CurrentFrame >= AnimData.GetTotalFrames())
            {
                if (AnimData.IsLooping)
                {
                    CurrentFrame %= AnimData.GetTotalFrames();
                }
                else
                {
                    Stop();
                }
            }
        }