Ejemplo n.º 1
0
    public void ToggleCatalogExpanse()
    {
        if (isCatalogExpanded)
        {
            BIWUtils.CopyRectTransform(panelRT, panelMinSizeRT);
            BIWUtils.CopyRectTransform(headerRT, headerMinSizeRT);
            BIWUtils.CopyRectTransform(searchBarRT, searchBarMinSizeRT);
            BIWUtils.CopyRectTransform(assetPackRT, assetPackMinSizeRT);
            BIWUtils.CopyRectTransform(categoryRT, assetPackMinSizeRT);
            AudioScriptableObjects.dialogClose.Play();
        }
        else
        {
            BIWUtils.CopyRectTransform(panelRT, panelMaxSizeRT);
            BIWUtils.CopyRectTransform(headerRT, headerMaxSizeRT);
            BIWUtils.CopyRectTransform(searchBarRT, searchBarMaxSizeRT);
            BIWUtils.CopyRectTransform(assetPackRT, assetPackMaxSizeRT);
            BIWUtils.CopyRectTransform(categoryRT, assetPackMaxSizeRT);
            AudioScriptableObjects.dialogOpen.Play();
        }

        isCatalogExpanded = !isCatalogExpanded;
    }