Пример #1
0
    private IEnumerator SidebarShown_Enter()
    {
        this.Log("[App] SidebarShown_Enter");
        sidePanel.gameObject.SetActive(true);
        sidePanel.outsideSidepanelRect.gameObject.SetActive(true);
        sidePanel.onClickOutsidePanel += ChangeStateToHome;

        hamburgerButton_canvasGroup.DOFade(0f, 0.25f).onComplete += () => hamburgerButton.gameObject.SetActive(false);
        if (sidePanel.IsShown == false)
        {
            appLogo.SetActive(false);
            sidePanel.ShowSideBar_StartAnim();
        }
        yield return(new WaitUntil(() => sidePanel.IsAnimating() == false));
    }