Exemplo n.º 1
0
    public void ShowMainMenu()
    {
        LoadMenuLevel();
        GamePanel.SetActive(false);
        PauseMenu.SetActive(false);
        HelpPanel.SetActive(false);
        LevelPickerPanel.SetActive(false);
        LevelPickerContainerContainer.SetActive(false);
        //LevelPickerContainerFunContainer.SetActive(false);
        //LevelPickerContainerCommunityContainer.SetActive(false);
        LevelFailed.SetActive(false);
        LevelComplete.SetActive(false);

        MainMenu.SetActive(true);
        SetCameraPosition(true);

        SetCameraTouchX(false);

        if (MainMenu.activeSelf)
        {
            //if (!EventSystem.current.alreadySelecting)
            EventSystem.current.SetSelectedGameObject(PlayButton);
        }

        _canStartMoving = true;
    }
Exemplo n.º 2
0
 public void ShowLevelPicker()
 {
     HideMainMenu();
     LoadLevelInput.text = AppController.Instance.settings.LastLevelPlayed;
     LevelPickerContainerContainer.SetActive(true);
     //LevelPickerContainer.GetComponent<ScrollRect>().SetY(0);
     LevelPickerPanel.SetActive(true);
 }
Exemplo n.º 3
0
 public void HideMainMenu()
 {
     GamePanel.SetActive(false);
     PauseMenu.SetActive(false);
     MainMenu.SetActive(false);
     HelpPanel.SetActive(false);
     LevelPickerPanel.SetActive(false);
     LevelFailed.SetActive(false);
     LevelComplete.SetActive(false);
     SetCameraPosition(false);
 }