From b2449f638eaf7f766b30ed2552f6898fff6e927c Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Thu, 6 Feb 2025 16:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Item/HighLightFlashItem.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Scripts/Item/HighLightFlashItem.cs b/Assets/Scripts/Item/HighLightFlashItem.cs index fb9f89d4..eadc7958 100644 --- a/Assets/Scripts/Item/HighLightFlashItem.cs +++ b/Assets/Scripts/Item/HighLightFlashItem.cs @@ -12,13 +12,10 @@ public class HighLightFlashItem : MonoBehaviour HighlightEffect high; TweenerCore dotw; - private void Awake() - { - high = GetComponent(); - } public void Init(float time, int count = -1, string finishedEvent = null) { + high = GetComponent(); high.outline = 0; dotw = DOTween.To(() => high.outline, (v) => high.outline = v, 1, time).SetEase(Ease.OutFlash).SetLoops(count, LoopType.Yoyo).OnComplete(() => {