dotween允许回调
This commit is contained in:
parent
fed54ad85b
commit
2bf534775f
@ -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<CanvasGroup>().alpha = 0f;
|
||||
tooltips.GetComponent<CanvasGroup>().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<BaseEventData>(e =>
|
||||
{
|
||||
if (!this.isActiveAndEnabled) return;
|
||||
DOTween.Complete(tooltips);
|
||||
DOTween.Complete(tooltips,true);
|
||||
tooltips.SetActive(false);
|
||||
//else
|
||||
//{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user