Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Arkuni

Pages: [1]
1
DOTween & DOTween Pro / Callback ordering
« on: July 01, 2015, 07:26:16 PM »
The code below produces the following sequence: 2, 1
var seq = DOTween.Sequence();
seq.AppendCallback(() => Debug.Log(1));
seq.AppendCallback(() => Debug.Log(2));

The code below produces the following sequence: 1, 2
seq.AppendCallback(() => Debug.Log(1));
seq.AppendInterval(0.001f);
seq.AppendCallback(() => Debug.Log(2));

What is the correct way of appending callbacks and getting the correct sequence?

Pages: [1]