예제 #1
0
    // Token: 0x060062D6 RID: 25302 RVA: 0x00230E84 File Offset: 0x0022F284
    private void CheckUiActive()
    {
        bool flag = this.ActiveScreens.Count > 0;

        if (flag != this.UiActive)
        {
            if (flag)
            {
                this.PlaceUi();
            }
            this.UiActive = flag;
            VRCUiCursorManager.SetUiActive(flag);
            USpeaker.CacheDevices();
            this.menuContentTransform.gameObject.GetComponent <Collider>().enabled = flag;
            if (flag && QuickMenu.Instance != null && QuickMenu.Instance && QuickMenu.Instance.IsActive)
            {
                QuickMenu.Instance.CloseMenu();
            }
        }
    }