Example #1
0
 public void PreviousPage()
 {
     if (_currentPage != 0)
     {
         _currentPage -= 1;
         rotatePage    = _pages[_currentPage].GetComponent <RotatePage>();
         rotatePage.FlipPageBack();
         PageChange();
     }
 }
Example #2
0
 public void NextPage()
 {
     if (_currentPage != _pages.Count - 1)
     {
         rotatePage = _pages[_currentPage].GetComponent <RotatePage>();
         rotatePage.FlipPage();
         _currentPage += 1;
         if (!_previousButton.activeSelf)
         {
             _previousButton.SetActive(true);
         }
         PageChange();
     }
 }