Example #1
0
 public void PrevSlide()
 {
     if (currentSlideIndex - 1 >= 0)
     {
         currentSlideIndex--;
         ImageListItemController controller = transform.Find("SelectScrollArea/Content/Subject_" + currentSubjectIndex +
                                                             "/ListScrollArea/Content/Slide_" + currentSlideIndex).GetComponent <ImageListItemController>();
         controller.OnClick();
     }
 }
Example #2
0
 public void NextSlide()
 {
     if (currentSlideIndex + 1 < currentSubject.slides.Length)
     {
         currentSlideIndex++;
         ImageListItemController controller = transform.Find("SelectScrollArea/Content/Subject_" + currentSubjectIndex +
                                                             "/ListScrollArea/Content/Slide_" + currentSlideIndex).GetComponent <ImageListItemController>();
         controller.OnClick();
     }
 }