Created
March 8, 2023 08:11
-
-
Save irfanbaysal/630da551d7e4d1f8e196677613493dfd to your computer and use it in GitHub Desktop.
HeartBeat 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
private void PerformHeartBeatEffect(Transform targetTransform) | |
{ | |
Sequence sequence = DOTween.Sequence(); | |
sequence.PrependInterval(3f) | |
.Append(targetTransform.DOPunchScale(.15f * Vector3.one, .5f, 2, 0)) | |
.Append(targetTransform.DOPunchScale(.15f * Vector3.one, .5f, 2, 0)).SetEase(Ease.OutBack).SetLoops(-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment