Esempio n. 1
0
 // Switches between MainMenu and HelpMenu
 public void SwitchMenu_MainHelp()
 {
     if (mainMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
     {
         fader.CrossFadeObjects(mainMenuCanvas, helpMenuCanvas);
     }
     else if (helpMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
     {
         fader.CrossFadeObjects(helpMenuCanvas, mainMenuCanvas);
     }
 }
Esempio n. 2
0
 // Switches between MainMenu and HelpMenu
 public void SwitchMenu_MainHelp()
 {
     StartCoroutine(SetTimeScale(1, 0));
     if (mainMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
     {
         fader.CrossFadeObjects(mainMenuCanvas, helpMenuCanvas);
     }
     else if (helpMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
     {
         fader.CrossFadeObjects(helpMenuCanvas, mainMenuCanvas);
     }
     StartCoroutine(SetTimeScale(0, 1));
 }
Esempio n. 3
0
    // Switches between MainMenu and HelpMenu
    public void SwitchMenu_MainHelp()
    {
        if (mainMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
        {
            fader.CrossFadeObjects(mainMenuCanvas, helpMenuCanvas);
        }
        else if (helpMenuCanvas.GetComponent <GraphicRaycaster>().enabled)
        {
            fader.CrossFadeObjects(helpMenuCanvas, mainMenuCanvas);
        }

        //mainMenuCanvas.SetActive(!mainMenuCanvas.activeSelf);
        //helpMenuCanvas.SetActive(!helpMenuCanvas.activeSelf);
    }