Dotween实现打字机效果,并向下滚屏


            _lowerText.DOText(_dialogCache.ToString(), _dialogCache.Length / cfg.TypeSpeed)
                      .SetEase(Ease.Linear)
                      .OnComplete(OnRobotTypeEnd)
                      .OnUpdate(() => _scrollRect.verticalNormalizedPosition = 0)
                      .Goto((_dialogCache.Length - newDialog.Length) / cfg.TypeSpeed, true);

posted @ 2018-10-18 15:01  Fallever  阅读(919)  评论(0编辑  收藏  举报