| | |
| | | switch (m_RespondType) { |
| | | case RespondType.In: |
| | | if (RectTransformUtility.RectangleContainsScreenPoint(this.transform as RectTransform, sp, CameraManager.uiCamera)) { |
| | | m_ClickOtherEvent.Invoke(); |
| | | m_ClickOtherEvent?.Invoke(); |
| | | this.SetActive(!m_DeActiveSelf); |
| | | } |
| | | break; |
| | | case RespondType.Out: |
| | | if (!RectTransformUtility.RectangleContainsScreenPoint(this.transform as RectTransform, sp, CameraManager.uiCamera)) { |
| | | m_ClickOtherEvent.Invoke(); |
| | | m_ClickOtherEvent?.Invoke(); |
| | | this.SetActive(!m_DeActiveSelf); |
| | | } |
| | | break; |