Esempio n. 1
0
    // --- Hides the Level Select ---
    public void hideMenu()
    {
        LoadingScreenUI.SetActive(true);

        mainMenuPanel.SetActive(false);
        ResetButton.SetActive(true);

        LoadingScreenUI.SetActive(false);
    }
Esempio n. 2
0
    public void hideWinBox()
    {
        LoadingScreenUI.SetActive(true);

        clearLevel();
        winBoxUI.SetActive(false);
        mainMenuPanel.SetActive(true);
        levelButtons[levelUnlock].SetActive(true);
        ResetButton.SetActive(false);
        ResetLevel();

        LoadingScreenUI.SetActive(false);
    }
Esempio n. 3
0
    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);
    }
Esempio n. 4
0
 // --- Hides the Loading Screen ---
 public void hideLoadingScreen()
 {
     LoadingScreenUI.SetActive(false);
 }
Esempio n. 5
0
 // --- Brings Up The Loading Screen ---
 public void openLoadingScreen()
 {
     LoadingScreenUI.SetActive(true);
 }