/// <summary> /// Handler invoked on mouse cursor entering control's bounds. /// </summary> protected virtual void OnMouseEntered() { if (HoverEnter != null) { HoverEnter.Invoke(this, EventArgs.Empty); } Redraw(); }
public void OnPointerEnter(PointerEventData eventData) { Debug.Log("Je survole avec la souris sur l'abilité"); HoverEnter?.Invoke(this, new HoverEnterArgs()); }
public void OnMouseEnter() { HoverEnter?.Invoke(this, new EventArgs()); }