Exemple #1
0
 public void OnMaskPressDown(Vector2 worldPos)
 {
     if (GuidNewTools.InnerEmpty(m_CircleWorldPos, m_RectWorldPos, worldPos))
     {
         GuidNewTools.PassEvent(eventName, m_eventListener.PointerEventData, ExecuteEvents.pointerDownHandler, true, 1);
         GameEvents.UI_Guid_Event.OnMaskTalkVisible.SafeInvoke(false);
         ClearMaskNotEventName();
         return;
     }
 }
Exemple #2
0
        public void OnMaskPressUp(Vector2 worldPos)
        {
            GuidNewTools.PassEvent(eventName, m_eventListener.PointerEventData, ExecuteEvents.pointerUpHandler, true, 2);
            ClearEventName();
            GameEvents.UI_Guid_Event.OnMaskClick.SafeInvoke(worldPos, true);
            //if (GuidNewTools.InnerEmpty(m_CircleWorldPos, m_RectWorldPos, worldPos))
            //{

            //    //GameEvents.UI_Guid_Event.OnMaskClick.SafeInvoke(worldPos, true);
            //    //ClearMask();
            //    //GameEvents.UI_Guid_Event.OnMaskClick.SafeInvoke(worldPos, true);
            //    return;
            //}
        }
Exemple #3
0
 public void OnMaskClick(Vector2 worldPos)
 {
     if (!this.m_maskCanHide)
     {
         return;
     }
     if (m_CircleWorldPos.Count + m_RectWorldPos.Count == 1 && !string.IsNullOrEmpty(eventName))
     {
         //点击事件
         if (GuidNewTools.InnerEmpty(m_CircleWorldPos, m_RectWorldPos, worldPos))
         {
             GuidNewTools.PassEvent(eventName, m_eventListener.PointerEventData, ExecuteEvents.pointerClickHandler, true);
             ClearMask();
             GameEvents.UI_Guid_Event.OnMaskClick.SafeInvoke(worldPos, true);
             return;
         }
     }
     else
     {
         //点击空白消失
         ClearMask();
     }
     GameEvents.UI_Guid_Event.OnMaskClick.SafeInvoke(worldPos, false);
 }