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();