예제 #1
0
    // Update is called once per frame.
    void Update()
    {
        // "isInAboutMenu" is set to the variable returned by the "GetIsInAboutMenu()" function from the "PauseMenuController" script that "PMC" is referencing.
        // In short, this is just true if the player is in the "about" menu or false otherwise.
        isInAboutMenu = PMC.GetIsInAboutMenu();

        // This makes the About Menu visible if the player is in the about menu, otherwise it makes it invisible.
        if (isInAboutMenu)
        {
            thisSameCanvas.enabled = true;
        }
        else
        {
            thisSameCanvas.enabled = false;
        }
    }