Exemple #1
0
    /// Used in button event
    public void PrevPage()
    {
        if (_currPage - 1 < 0)
        {
            return;
        }

        --_currPage;
        GetPage();
        PrevPageEvent?.Invoke(_currPage, _totalPages);
    }
Exemple #2
0
 private void Start()
 {
     _currPage = startPage;
     PrevPageEvent?.Invoke(_currPage, _totalPages);//to init page text and disable prev button
     GetPage();
 }