Example #1
0
 public static void DragSlidersUpdate()
 {
     if (DragSliderManager.dragging && DragSliderManager.draggingUpdateMethod != null)
     {
         DragSliderManager.draggingUpdateMethod(DragSliderManager.CurMouseOffset(), DragSliderManager.lastRateFactor);
     }
 }
Example #2
0
 public static void DragSlidersOnGUI()
 {
     if (DragSliderManager.dragging && Event.current.type == EventType.MouseUp && Event.current.button == 0)
     {
         DragSliderManager.dragging = false;
         if (DragSliderManager.completedMethod != null)
         {
             DragSliderManager.completedMethod(DragSliderManager.CurMouseOffset(), DragSliderManager.lastRateFactor);
         }
     }
 }