Пример #1
0
    public void PressBackButton()
    {
        switch (this.currentScene)
        {
        case E_MenuScene.SelectStage:
            this.selectStageView.SetActive(false);
            break;

        case E_MenuScene.ShowManual:
            this.showManualView.SetActive(false);
            break;

        case E_MenuScene.ShowOption:
            this.showOptionView.SetActive(false);
            break;

        case E_MenuScene.ShowRanking:
            this.showRankingView.SetActive(false);
            break;

        case E_MenuScene.ConfirmGoBackTitle:
            this.confirmGoTitleView.SetActive(false);
            break;

        case E_MenuScene.ConfirmGoTutorial:
            this.confirmGoTutorialView.SetActive(false);
            break;

        case E_MenuScene.InitMenu:
            break;
        }
        this.initMenuView.SetActive(true);
        this.currentScene = E_MenuScene.InitMenu;
    }
Пример #2
0
    public void PressMenuButton(E_MenuButton menuType)
    {
        this.initMenuView.SetActive(false);
        switch (menuType)
        {
        case E_MenuButton.GoBackTitle:
            this.confirmGoTitleView.SetActive(true);
            this.currentScene = E_MenuScene.ConfirmGoBackTitle;
            break;

        case E_MenuButton.GoTutorial:
            this.confirmGoTutorialView.SetActive(true);
            this.currentScene = E_MenuScene.ConfirmGoTutorial;
            break;

        case E_MenuButton.SelectStage:
            this.selectStageView.SetActive(true);
            this.currentScene = E_MenuScene.SelectStage;
            break;

        case E_MenuButton.ShowManual:
            this.showManualView.SetActive(true);
            this.currentScene = E_MenuScene.ShowManual;
            break;

        case E_MenuButton.ShowOption:
            this.showOptionView.SetActive(true);
            this.currentScene = E_MenuScene.ShowOption;
            break;

        case E_MenuButton.ShowRanking:
            this.showRankingView.SetActive(true);
            this.currentScene = E_MenuScene.ShowRanking;
            break;
        }
    }