Beispiel #1
0
    public void hidePanel()
    {
        CanvasGroup canvasGroup = GetComponent <CanvasGroup>();

        canvasGroup.alpha          = 0f;
        canvasGroup.interactable   = false;
        canvasGroup.blocksRaycasts = false;
        ModalDisplayPanelUpdater listUpdater = this.GetComponentInChildren <ModalDisplayPanelUpdater>();

        listUpdater.destroyData();
    }
Beispiel #2
0
    public void showPanel()
    {
        CanvasGroup canvasGroup = GetComponent <CanvasGroup>();

        canvasGroup.alpha          = 1f;
        canvasGroup.interactable   = true;
        canvasGroup.blocksRaycasts = true;
        ModalDisplayPanelUpdater listUpdater = this.GetComponentInChildren <ModalDisplayPanelUpdater>();

        listUpdater.showData();
    }