Time.Timescale Not working with DOTween Animation

1.6k Views Asked by At

My code looks like this.

gameObject.transform.DOMoveY(transform.position.y * -1, animationDuration, false) .SetEase(easeType).SetUpdate(false).OnComplete(() => { gameObject.SetActive(false); });

what I want to do here is that, whenever I pause my game Using Time.TimeScale=0, the animation should also pause. If anyone can help I will be grateful.

1

There are 1 best solutions below

0
On

Found The answer apparently I was settings timescale on a different function. :)