修复闪烁bug
This commit is contained in:
parent
865eab1ff4
commit
161ea373e5
@ -16,7 +16,7 @@ public class HighLightFlashItem : MonoBehaviour
|
|||||||
public void Init(float time, int count = -1, string finishedEvent = null)
|
public void Init(float time, int count = -1, string finishedEvent = null)
|
||||||
{
|
{
|
||||||
high = GetComponent<HighlightEffect>();
|
high = GetComponent<HighlightEffect>();
|
||||||
high.outline = 0;
|
high.outline = 0.01f;
|
||||||
dotw = DOTween.To(() => high.outline, (v) => high.outline = v, 1, time).SetEase(Ease.OutFlash).SetLoops(count, LoopType.Yoyo).OnComplete(() =>
|
dotw = DOTween.To(() => high.outline, (v) => high.outline = v, 1, time).SetEase(Ease.OutFlash).SetLoops(count, LoopType.Yoyo).OnComplete(() =>
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(finishedEvent)==false)
|
if (string.IsNullOrEmpty(finishedEvent)==false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user