예제 #1
0
        void CheckOpen(float delayTime)
        {
            var node = mDefaultOpen.First;

            while (node != null)
            {
                int v    = node.Value;
                var next = node.Next;
                if (PanelManager.OpenPanel(v))
                {
                    mDefaultOpen.Remove(node);
                }
                else
                {
                    break;
                }
                node = next;
            }
            if (mDefaultOpen.Count > 0)
            {
                mCheckTime = delayTime;
            }
        }
예제 #2
0
        private void Update()
        {
            if (mOpenPanel)
            {
                if (PanelManager.HasAnyPanelClosing)
                {
                    return;
                }
                mOpenPanel = false;

                if (mUseId)
                {
                    var panel = PanelManager.OpenPanel(mPanelId);
                    if (panel != null)
                    {
                        m_PanelName = panel.name;
                    }
                }
                else if (!string.IsNullOrEmpty(m_PanelName))
                {
                    PanelManager.OpenPanel(m_PanelName);
                }
            }
        }