示例#1
0
文件: UIButton.cs 项目: gh201200/Game
 public override void OnPointerEnter(PointerEventData eventData)
 {
     base.OnPointerEnter(eventData);
     if (onEnter != null)
     {
         onEnter.Invoke(eventData);
     }
 }
示例#2
0
        public override void OnPointerEnter(PointerEventData eventData)
        {
            base.OnPointerEnter(eventData);

            DoStateTransition(SelectionState.Highlighted, true);

            if (OnPointerEnterEvent != null)
            {
                OnPointerEnterEvent.Invoke(this, eventData);
            }
        }
 private void EnableSelection()
 {
     _counter++;
     if (_counter <= 0)
     {
         _counter = 1;
     }
     if (itemSelectionImage == null || _counter > 1)
     {
         return;
     }
     _selectedItem = this;
     itemSelectionImage.SetActive(true);
     OnPointerEnterEvent?.Invoke();
 }
 void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
 {
     OnPointerEnterEvent?.Invoke(eventData);
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     OnPointerEnterEvent?.Invoke(this);
 }
示例#6
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     isPointerOver = true;
     OnPointerEnterEvent?.Invoke(this);
 }
示例#7
0
 protected virtual void OnPointerEnter()
 {
     OnPointerEnterEvent?.Invoke();
 }
示例#8
0
 public override void OnPointerEnter(PointerEventData eventData)
 {
     base.OnPointerEnter(eventData);
     OnPointerEnterEvent?.Invoke(eventData);
 }
示例#9
0
 /// <summary>
 /// On pointer enter.
 /// </summary>
 /// <param name="eventData">Pointer event data.</param>
 public void OnPointerEnter(PointerEventData eventData)
 {
     OnPointerEnterEvent?.Invoke(eventData);
 }
示例#10
0
 private void OnPointerEnter(BaseEventData eventData)
 {
     OnPointerEnterEvent.Invoke();
 }
 internal static void InvokePointerEnter(RaycastResult raycastResult, GameObject interactiveObj)
 {
     OnPointerEnterEvent?.Invoke(raycastResult, interactiveObj);
 }