private void Update()
 {
     if (isOver)
     {
         if (Input.GetMouseButtonDown(0))
         {
             onMouseLeftDown.Invoke(this);
         }
         if (Input.GetMouseButtonDown(1))
         {
             onMouseRightDown.Invoke(this);
         }
         if (Input.GetMouseButtonUp(0))
         {
             onMouseLeftUp.Invoke(this);
         }
         if (Input.GetMouseButtonUp(1))
         {
             onMouseRightUp.Invoke(this);
         }
     }
 }
 public void OnPointerExit(PointerEventData eventData)
 {
     isOver = false;
     onMouseExit.Invoke(this);
 }
 public void OnPointerEnter(PointerEventData eventData)
 {
     isOver = true;
     onMouseEnter.Invoke(this);
 }