コード例 #1
0
 private void Update()
 {
     if (isOver && HoverOverMenu.Instance == null)
     {
         HoverOverMenu.Show();
     }
 }
コード例 #2
0
 // 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();
     }
 }