Example #1
0
 public void ShowPage(int page)
 {
     if (page == 0)
     {
         page = pageCount;
     }
     else if (page == pageCount + 1)
     {
         page = 1;
     }
     currentPage = page;
     tabsUI.ShowPage(page);
     EventSystem.current.SetSelectedGameObject(buttonsRoot.Find(BUTTONS_NAME + page.ToString()).gameObject);
 }
Example #2
0
 public void ShowPage(int page)
 {
     //if (!startShowPage)
     //    StartCoroutine(CheckCurrentSelect());
     if (page == 0)
     {
         page = pageCount;
     }
     else if (page == pageCount + 1)
     {
         page = 1;
     }
     SwapButtonTexture(currentPageButtons[page - 1].gameObject);
     currentPage = page;
     tabsUI.ShowPage(page);
     Debug.Log("Show " + page);
     UIManager.Instance.SetSelected(allPageButtons[page - 1].gameObject);
     EventSystem.current.SetSelectedGameObject(allPageButtons[page - 1].gameObject);
 }