johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

TweenDelay and TweenStart...duplicates tweeen #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Play a Tween with delay.
2. Inmediality Pause it
3. Resume it

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

Expect Tween resumes with the correct delay. But when resumes IEnumerator 
Start() executes the TweenDelay coroutine also executing TweenStart, and after 
this coroutine TweenStart is executed once again.

Please provide any additional information below.

My workaround was...

    IEnumerator TweenDelay(){
        delayStarted = Time.time;
        yield return new WaitForSeconds (delay);

        if(wasPaused){
            wasPaused=false;
            //TweenStart(); 
        }
    }   

Original issue reported on code.google.com by marcos.c...@gmail.com on 3 Apr 2012 at 7:23