Example #1
0
    //fading stuff
    public IEnumerator OpenMenu()
    {
        yield return(new WaitForSeconds(Duration));

        creditsPanel.SetActive(false);
        optionPanel.SetActive(false);
        resumePanel.SetActive(false);
        mainAnimator.SetVisible(true); // do after fade into main screen
    }
Example #2
0
    public void OpenUI()
    {
        Time.timeScale = 0f;

        //leftSidePanel.SetActive(true);
        //rightSidePanel.SetActive(true);
        MenuPanel.SetActive(true);
        PlayerInfoPanel.SetActive(true);

        isOpen = true;

        animationController.SetVisible(true);

        if (AudioManager.instance != null)
        {
            AudioManager.SetLowPassEnabled(true);
            AudioManager.Play("ui_pause");
        }
    }