private void Update() { if (isOver && HoverOverMenu.Instance == null) { HoverOverMenu.Show(); } }
// 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(); } }