I use DOTween in my lua code, I create tweens in a for loop and assign them a same intId. In another function I use DOTween.Kill with the intId to kill the tweens , but the tweens played as Normal after the kill function.
for i = 1,10 then local tTweener = tNodeContent:DOLocalMove(Static.endPos,Static.speed) tTweener:SetId(1000) tTweener:SetEase(CSEase.OutCubic) end
the kill function:
CSDOTween.Kill(1000,true)
I use DOTween in my lua code, I create tweens in a for loop and assign them a same intId. In another function I use DOTween.Kill with the intId to kill the tweens , but the tweens played as Normal after the kill function.
for i = 1,10 then local tTweener = tNodeContent:DOLocalMove(Static.endPos,Static.speed) tTweener:SetId(1000) tTweener:SetEase(CSEase.OutCubic) end
the kill function:CSDOTween.Kill(1000,true)