- Home /
Question by
DrinkableGames · Mar 15 at 05:57 PM ·
methodtweentweeningoncomplete
Dotween: Multiple .OnComplete don't work?
Right now I want to first call a method Method1()
after my tween got completed and after that I want to call another method Method2()
:
DOTween.Sequence().Join(tweens).OnComplete(() => Method1()).OnComplete(() => Method2());
Strangely only Method2()
gets called.
Does anyone know why? @Demigiant
Comment
Answer by pepipe · Apr 01 at 11:13 AM
IDE info about the OnComplete: "Sets the onComplete callback for the tween, clearing any previous".
So your second OnComplete is overwriting the first OnComplete.