private IEnumerator OnSwitchToItemListCoroutine()
    {
        Stopwatch stopWatch = new Stopwatch();

        stopWatch.Reset();
        stopWatch.Start();
        mStateStack.Clear();
        mUIItemStoreManager.SetKeyController(null);
        mUIItemStoreManager.LockControl();
        mUIItemListManager.SetActive(isActive: true);
        if (__ItemlistManager__ != null)
        {
            __ItemlistManager__.Init();
        }
        mUIItemListManager.Initialize(itemListManager);
        stopWatch.Stop();
        for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++)
        {
            yield return(new WaitForEndOfFrame());
        }
        SwitchView(State.ItemList, delegate
        {
            this.mUIItemListManager.SetKeyController(this.mKeyController);
            this.mUIItemStoreManager.Release();
            this.mUIItemStoreManager.SetActive(isActive: false);
            this.ChangeState(State.ItemList, popStack: true);
        });
    }