Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: editkid on August 08, 2015, 02:21:50 PM

Title: .Restart() doesn't trigger .OnPlay() on Sequence - intentional?
Post by: editkid on August 08, 2015, 02:21:50 PM
Just ran into the following and wanted to check if it's intentional. The .OnPlay() callback doesn't seem to be called .OnRestart() of a Sequence.

It works when you do .Rewind() and .Play(), however.

Code: [Select]
DOTween v1.0.750
DOTween Pro v0.9.290

Cheers!
Peter
Title: Re: .Restart() doesn't trigger .OnPlay() on Sequence - intentional?
Post by: Daniele on August 08, 2015, 11:11:55 PM
Hi,

Ouch, you found a bug. The update I'm attaching fixes it. Consider that it will now correctly call OnPlay only if you call Restart after the tween has completed (meaning the tween was in a paused state).

Cheers!
Daniele