/// Used in button event public void PrevPage() { if (_currPage - 1 < 0) { return; } --_currPage; GetPage(); PrevPageEvent?.Invoke(_currPage, _totalPages); }
private void Start() { _currPage = startPage; PrevPageEvent?.Invoke(_currPage, _totalPages);//to init page text and disable prev button GetPage(); }