Last active
March 8, 2023 08:15
-
-
Save irfanbaysal/839ec48addc33bfec3ed05a83b6c14a3 to your computer and use it in GitHub Desktop.
Wave Effect with DOTween
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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