private void _HideAll() { _panelsPreventAction.Clear(); foreach (var kv in _panelsOnCurrentScene) { foreach (var subKv in kv.Value) { GameObject p = subKv.Value; if (p && p.activeSelf) { CommonPanel c = p.GetComponent <CommonPanel>(); if (c != null) { try { c.OnBtnCloseClicked(); } catch (Exception e) { D.Log(e); } } } } } }
private void _Hide(string PanelName) { string path = System.IO.Path.Combine(PanelPath, PanelName + ".prefab"); var p = GetPanel(path); if (p != null && p.activeSelf) { MarkPanelWontPreventAction(path); CommonPanel c = p.GetComponent <CommonPanel>(); if (c != null) { try { c.OnBtnCloseClicked(); } catch (Exception e) { D.Log(e); } } } }