Skip to content

Instantly share code, notes, and snippets.

@irfanbaysal
Last active March 8, 2023 08:15
Show Gist options
  • Save irfanbaysal/839ec48addc33bfec3ed05a83b6c14a3 to your computer and use it in GitHub Desktop.
Save irfanbaysal/839ec48addc33bfec3ed05a83b6c14a3 to your computer and use it in GitHub Desktop.
Wave Effect with DOTween
public void WaveAnim(int i,float delay)
{
Sequence sequence = DOTween.Sequence();
sequence.Append(transform.DOLocalMoveY(.2f, .3f)
.SetEase(Ease.OutFlash)
.SetRelative()
.SetDelay(i*delay)
.SetLoops(2, LoopType.Yoyo));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment