Exemple #1
0
        public override void Run(bool runChildren)
        {
            var queue = this.GetUpperRawler <ParallelQueue>();

            if (queue != null)
            {
                var deqeue = queue.Dequeue();
                while (deqeue != null)
                {
                    SetText(deqeue);
                    base.Run(runChildren);
                    deqeue = queue.Dequeue();
                }
                LoopEndEvent?.Invoke(this, EventArgs.Empty);
            }
            else
            {
                ReportManage.ErrUpperNotFound <ParallelQueue>(this);
            }
        }
Exemple #2
0
 void OnLoopEnd()
 {
     onLoopEnd?.Invoke(curLoopIndex);
     curLoopIndex++;
     if (loops < 0 || curLoopIndex < loops)
     {
         if (loopType == LoopType.PingPong)
         {
             segInfoList.Reverse();
             IsReversed = segInfoList.IsReversed;
         }
         curSegIndex = 0;
         curSegInfo  = segInfoList[curSegIndex];
         UpdateRotation();
         curSegProgess = 0;
     }
     else
     {
         valid = false;
     }
 }