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