示例#1
0
 protected override void StartDrag()
 {
     if (CustomInputModule.IsPointerOverUI())
     {
         return;
     }
     base.StartDrag();
 }
示例#2
0
 public void ShowWindowUnderMouse()
 {
     if (CustomInputModule.IsPointerOverUI())
     {
         var hovered = CustomInputModule.GetHoveredGameObject();
         if (hovered)
         {
             var window = hovered.GetComponentInParent <Window>();
             if (window)
             {
                 Windows.MoveToTop(window.transform);
             }
         }
     }
 }