tramper2 / dotween

Automatically exported from code.google.com/p/dotween
0 stars 1 forks source link

Appending a callback to the end of the Sequence calls it twice #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create Sequence append callback
        Sequence mySequence = DOTween.Sequence();
        // Add a movement tween at the beginning
        mySequence.Append(transform.DOLocalMove(Vector3.up * 100, 1));
        // Add a rotation tween as soon as the previous one is finished
        mySequence.Append(transform.DOLocalRotate(new Vector3(0, 180, 0), 1));

        mySequence.AppendCallback(OnFinished); 

2.the callback (OnFinished) will be called twice

What is the expected output? What do you see instead?

the callback will be called only once

What version of the product are you using? On what operating system?

Unity4.5 = > DOTween43 => win7

Please provide any additional information below.

sorry ,I am new to use DOTween,if you have some advice to fix the problem 
,please send a email to me .

Original issue reported on code.google.com by a1294246...@gmail.com on 26 Nov 2014 at 2:04

GoogleCodeExporter commented 8 years ago
I just found this bug yesterday and fixed it. I'll release it publicly tomorrow 
or the day after though because first I want to finish another thing. In the 
meantime, find the fix attached (the update also allows for Sequences made only 
of callbacks) :)

Original comment by daniele....@gmail.com on 26 Nov 2014 at 7:31

Attachments: