private void Update()
 {
     if (isOver && HoverOverMenu.Instance == null)
     {
         HoverOverMenu.Show();
     }
 }
 // Hides the mouse overlay when the mouse leaves the image
 public void OnPointerExit(PointerEventData eventData)
 {
     MenuManager.Instance.SpriteUnderMouse = null;
     isOver = false;
     if (HoverOverMenu.Instance != null)
     {
         HoverOverMenu.Hide();
     }
 }
 // Shows the mouse overlay when the mouse is over the image
 public void OnPointerEnter(PointerEventData eventData)
 {
     MenuManager.Instance.SpriteUnderMouse = GetComponent<Image>().sprite;
     isOver = true;
     if (HoverOverMenu.Instance == null)
     {
         HoverOverMenu.Show();
     }
 }