예제 #1
0
    void UpdateBookElements()
    {
        switch (curPageIndex)
        {
        case (int)Pages.PlayerCount:
            cookies.SetActive(false);
            pageCtrls.SetActive(true);
            menu.SetActive(false);
            curPage = countPage.EnableOpen();
            countPage.LoadPage();
            pagePopups[1].Reappear();
            if (countPage.chosen)
            {
                pagePopups[0].Reappear();
            }
            if (selectPage.interacted)
            {
                selectPage.ReloadPage();
            }
            break;

        case (int)Pages.PlayerSelect:
            selectPage.LoadPage();
            pagePopups[1].Reappear();
            break;

        case (int)Pages.StartMatch:
            if (manager.round == 0)
            {
                cam.ToLevelView(PAGE_MOVEMENT_TIME / 2);
                manager.ConfigureTurnOrder();
            }
            break;
        }
    }