Esempio n. 1
0
 public void toLogin()
 {
     loginFade.Fade(FadeTransition.In);
     loginFade.GetComponent <CanvasGroup>().interactable   = true;
     loginFade.GetComponent <CanvasGroup>().blocksRaycasts = true;
     signUpFade.Fade(FadeTransition.Out);
     signUpFade.GetComponent <CanvasGroup>().interactable   = false;
     signUpFade.GetComponent <CanvasGroup>().blocksRaycasts = false;
 }
Esempio n. 2
0
    public void ShowPauseMenu()
    {
        CanvasGroup cg = pauseMenuParent.GetComponent <CanvasGroup> ();

        cg.alpha          = 1;
        cg.interactable   = true;
        cg.blocksRaycasts = true;

        Object[] buttons = Object.FindObjectsOfType(typeof(Button));
        foreach (Object obj in buttons)
        {
            Button           but     = obj as Button;
            PointerEventData pointer = new PointerEventData(EventSystem.current);
            ExecuteEvents.Execute(but.gameObject, pointer, ExecuteEvents.pointerUpHandler);
        }
    }
Esempio n. 3
0
    public void HideEndgameMenu()
    {
        CanvasGroup cg = endgameMenuParent.GetComponent <CanvasGroup> ();

        cg.alpha          = 0;
        cg.interactable   = false;
        cg.blocksRaycasts = false;
    }