Example #1
0
 public void PointerButtonEvent(Pointer pointer)
 {
     if (pointer == null)
     {
         return;
     }
     if (pointer.group != null)
     {
         ScrollSlider scrollSlider = GameObject.FindObjectOfType(typeof(ScrollSlider)) as ScrollSlider;
         if (scrollSlider != null)
         {
             scrollSlider.DisableCurrentPointer();
             FindObjectOfType <ScrollSlider> ().currentGroupIndex = pointer.group.Index;
             scrollSlider.GoToCurrentGroup();
         }
     }
 }