hch
9 天以前 b19666d8acba43e715688da14fe19f029050e588
Main/Component/UI/Common/ClickScreenOtherSpace.cs
@@ -5,6 +5,7 @@
using System;
using UnityEngine.Events;
//点击其他区域触发控制显隐 可附加事件
[RequireComponent(typeof(RectTransform))]
public class ClickScreenOtherSpace : MonoBehaviour
{
@@ -57,6 +58,12 @@
                        m_ClickOtherEvent?.Invoke();
                    }
                    break;
            }
        }
        else if (Input.GetMouseButtonUp(0))
        {
            switch (m_RespondType)
            {
                case RespondType.InOut:
                    this.SetActive(!m_DeActiveSelf);
                    m_ClickOtherEvent?.Invoke();