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; }
public void ShowLevelPicker() { HideMainMenu(); LoadLevelInput.text = AppController.Instance.settings.LastLevelPlayed; LevelPickerContainerContainer.SetActive(true); //LevelPickerContainer.GetComponent<ScrollRect>().SetY(0); LevelPickerPanel.SetActive(true); }
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); }