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; } }
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); } } }