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); } }
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; } }