From 2bf534775f2eaf0fad71215dedbbece945c099c7 Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Thu, 13 Jan 2022 20:00:04 +0800 Subject: [PATCH] =?UTF-8?q?dotween=E5=85=81=E8=AE=B8=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/Control/PfUIButton.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/UI/Control/PfUIButton.cs b/Assets/Scripts/UI/Control/PfUIButton.cs index e2b96376..b182c01e 100644 --- a/Assets/Scripts/UI/Control/PfUIButton.cs +++ b/Assets/Scripts/UI/Control/PfUIButton.cs @@ -157,7 +157,7 @@ namespace Assets.Scripts.UI.Control se.SetDelay(1); se.AppendCallback(() => { - DOTween.Complete(tooltips); + DOTween.Complete(tooltips,true); tooltips.SetActive(true); tooltips.GetComponent().alpha = 0f; tooltips.GetComponent().DOFade(1, 0.5f); @@ -201,7 +201,7 @@ namespace Assets.Scripts.UI.Control if (!string.IsNullOrWhiteSpace(Tooltips) && showTooltip) { #endif - DOTween.Complete(tooltips); + DOTween.Complete(tooltips,true); group.DOFade(0, 1f).onComplete += () => { tooltips.SetActive(false); }; @@ -234,7 +234,7 @@ namespace Assets.Scripts.UI.Control UIManager.AddEvent(this.gameObject, EventTriggerType.PointerDown, new UnityEngine.Events.UnityAction(e => { if (!this.isActiveAndEnabled) return; - DOTween.Complete(tooltips); + DOTween.Complete(tooltips,true); tooltips.SetActive(false); //else //{