Esempio n. 1
0
        // Use this for initialization
        void Start()
        {
            this.ExecuteNode(DOTweenAction.Allocate(() => this.transform.DOLocalMoveX(5, 5)));

            this.Sequence()
            .Delay(5.0f)
            .Event(() => "开始执行 Sequence 中的 Dotween".LogInfo())
            .DOTween(() => transform.DOLocalMoveX(-5, 5))
            .Event(() => "结束执行 Sequence 中的 Dotween".LogInfo())
            .Begin();
        }
Esempio n. 2
0
 public static IActionChain DOTween(this IActionChain selfChain, Func <Tweener> tweenFactory)
 {
     return(selfChain.Append(DOTweenAction.Allocate(tweenFactory)));
 }