// --- Hides the Level Select --- public void hideMenu() { LoadingScreenUI.SetActive(true); mainMenuPanel.SetActive(false); ResetButton.SetActive(true); LoadingScreenUI.SetActive(false); }
public void hideWinBox() { LoadingScreenUI.SetActive(true); clearLevel(); winBoxUI.SetActive(false); mainMenuPanel.SetActive(true); levelButtons[levelUnlock].SetActive(true); ResetButton.SetActive(false); ResetLevel(); LoadingScreenUI.SetActive(false); }
public void Start() { // --- Getting GameObjects --- rocketShip = GameObject.FindGameObjectWithTag("Player"); cameraScript = GameObject.FindGameObjectWithTag("MainCamera"); LoadingScreenUI = GameObject.FindGameObjectWithTag("LoadingScreen"); // --- Getting UI Gameobjects --- mainMenuPanel = GameObject.FindGameObjectWithTag("LevelMenu"); winBoxUI = GameObject.FindGameObjectWithTag("WinBoxUI"); levelButtons = GameObject.FindGameObjectsWithTag("LevelButtons"); ResetButton = GameObject.FindGameObjectWithTag("ResetButton"); for (int x = 1; x < levelButtons.Length; x++) { levelButtons[x].SetActive(false); } ResetButton.SetActive(false); winBoxUI.SetActive(false); LoadingScreenUI.SetActive(false); }
// --- Hides the Loading Screen --- public void hideLoadingScreen() { LoadingScreenUI.SetActive(false); }
// --- Brings Up The Loading Screen --- public void openLoadingScreen() { LoadingScreenUI.SetActive(true); }