Unity DOTween DOMove moving in wrong direction
Hello People, I've been struggling with my code for the past few hours. The DOMoveY call never reaches it's OnColmplete callback, and the object that I'm moving randomly moves down instead of up. I was not able to figure this out. Can someone please point out my mistake here? Thanks in advance
summonedTween = transform.DOMove(destination.position, summoningSpeed).OnComplete(() => {
transform.rotation = Quaternion.identity;
float yPos = transform.position.y + 1.5f;
Sequence animationSequence = DOTween.Sequence();
animationSequence.Append(transform.DOMoveY(yPos, 0.4f)).
OnComplete(() => {
Debug.Log("reached");
})
.Append(transform.DOScale(0.5f, 0.5f))
.Append(sr.DOFade(0, 0.4f))
.OnComplete(() => {
Destroy(gameObject);
});
});
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612210006im_/https://answers.unity.com/themes/thub/images/avi.jpg)