-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using System.Collections; | ||
using DG.Tweening; | ||
|
||
public class EaseX : MonoBehaviour | ||
{ | ||
public Image imgFlash, imgSmoothFlash; | ||
public Color flashColor; | ||
[Header("Tween Settings")] | ||
public float duration = 2; | ||
public Ease ease; | ||
public float overshootOrAmplitude = 10; | ||
|
||
public void Play() | ||
{ | ||
DOTween.RewindAll(); | ||
DOTween.KillAll(); | ||
|
||
imgFlash.DOColor(flashColor, duration).SetEase(ease, overshootOrAmplitude); | ||
imgSmoothFlash.DOColor(flashColor, duration).SetEase(ease, overshootOrAmplitude); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.