1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
dotween-upm-fork/UnityTests.Unity5/Assets/_Tests/CallbacksOnlySequence.cs
2015-03-18 19:30:48 +01:00

20 lines
601 B
C#

using DG.Tweening;
using UnityEngine;
using System.Collections;
public class CallbacksOnlySequence : BrainBase
{
public Transform target;
void Start()
{
DOTween.Sequence()
.OnComplete(()=>Debug.Log(target.position.x.ToString("N10")))
// .SetLoops(3, LoopType.Yoyo)
// .SetLoops(3)
.AppendCallback(()=> Debug.Log("<color=#45DCF5>[" + Time.realtimeSinceStartup + "] Callback 0</color>"))
.AppendInterval(1)
// .Append(target.DOMoveX(1, 0.05f).SetRelative())
.AppendCallback(()=> Debug.Log("<color=#45DCF5>[" + Time.realtimeSinceStartup + "] Callback FINAL</color>"));
}
}