Пример #1
0
    void InitRoom()
    {
        CurrentRoom++;
        if (CurrentRoom > 0)
        {
            PrevButton.Appear();
        }
        else
        {
            PrevButton.Resume();
        }

        if (CurrentRoom < FolloweesList.Count - 1)
        {
            NextButton.Appear();
        }
        else
        {
            NextButton.Resume();
        }
        EnterRoom(CurrentRoom);

        if (FinishedButton != null)
        {
            FinishedButton.Resume();
        }
    }
Пример #2
0
    //pause the game and activate the pause-menu
    public void Pause()
    {
        PopupMenu pauseMenu = Camera.main.transform.Find("PauseMenu").GetComponent <PopupMenu>();

        if (pauseMenu != null)
        {
            pauseMenu.Appear();
        }
    }
Пример #3
0
    void NextRoom()
    {
        CurrentRoom++;

        if (CurrentRoom == 1)
        {
            PrevButton.Appear();
        }

        if (CurrentRoom == FolloweesList.Count - 1)
        {
            NextButton.Resume();
            if (FinishedButton != null)
            {
                FinishedButton.Appear();
            }
        }
        EnterRoom(CurrentRoom);
    }