Exemplo n.º 1
0
    private static void Activate(TransitionableScreen screen)
    {
        var canvasGroup = screen.canvasGroup ?? screen.GetComponent <CanvasGroup>();

        canvasGroup.interactable   = true;
        canvasGroup.blocksRaycasts = true;

        screen.gameObject.SetActive(true);
        screen.OnTransitionIn();
        screen.onTransitionIn.Invoke();
    }
    private static void Activate(TransitionableScreen screen)
    {
        screen.gameObject.SetActive(true);

        var canvasGroup = screen.canvasGroup;

        if (canvasGroup)
        {
            canvasGroup.interactable   = true;
            canvasGroup.blocksRaycasts = true;
        }

        screen.OnTransitionIn();
    }