| | |
| | | using System; |
| | | using UnityEngine.Events; |
| | | |
| | | namespace vnxbqy.UI |
| | | { |
| | | [RequireComponent(typeof(RectTransform))] |
| | | public class ClickScreenOtherSpace : MonoBehaviour |
| | | { |
| | |
| | | set { m_RespondType = value; } |
| | | } |
| | | |
| | | UIEvent m_ClickOtherEvent = new UIEvent(); |
| | | Action m_ClickOtherEvent; |
| | | |
| | | public void AddListener(UnityAction _callBack) |
| | | public void AddListener(Action _callBack) |
| | | { |
| | | m_ClickOtherEvent.AddListener(_callBack); |
| | | m_ClickOtherEvent += _callBack; |
| | | } |
| | | |
| | | public void RemoveAllListeners() |
| | | { |
| | | m_ClickOtherEvent.RemoveAllListeners(); |
| | | m_ClickOtherEvent = null; |
| | | } |
| | | |
| | | private void LateUpdate() |
| | |
| | | In, |
| | | Out, |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |