예제 #1
0
 /// <summary>
 /// Called each frame by Unity, checks to see if the user clicks/scrolls outside of
 /// the dropdown while open, and closes it if so.
 /// </summary>
 internal void Update()
 {
     if (open && handler != null && !handler.IsOver && (PUIUtils.GetMouseButton(0) ||
                                                        PUIUtils.GetInputAxis("Mouse ScrollWheel") != 0.0f))
     {
         Close();
     }
 }