Ejemplo n.º 1
0
 /// <summary>
 /// 开始圆环部分动画
 /// </summary>
 public void StartTween(Action action = null)
 {
     if (CircleUI)
     {
         TwinkleObj(CircleUI.VerticalLine, 0, 0.02f, () =>
         {
             if (FullViewTweenController.IsTweening || !FullViewTweenController.displayFullViewTween)
             {
                 CircleUI.HorizontalLine.SetActive(true);
                 CirclePartSequence.OnComplete(() =>
                 {
                     if (FullViewTweenController.IsTweening || !FullViewTweenController.displayFullViewTween)
                     {
                         ShowCirclePart(() =>
                         {
                             PlayCircleRotateTween();
                             if (action != null)
                             {
                                 action();
                             }
                         });
                     }
                 }).Restart();
             }
         });
     }
 }