public virtual void ReleaseScene() { foreach (PanelId panelId in panels.Keys) { UIPage bPanel = panels[panelId]; bPanel.Hide(true); if (bPanel.mResident) { bPanel.Destroy(); } bPanel.Release(); } panels.Clear(); }