private void showPanel(BasePanel panel) { if (panel == null) { return; } if (panel.isOpen && !panel.isActive) { //当前面板没有被关闭,但交互被禁止 panel.EnablePanel(); return; } if (!panel.isOpen) { //当前面板已经被关闭或者是正在被关闭 panel.gameObject.SetActive(true); panel.transform.SetAsLastSibling(); panel.m_Animator.SetBool(panel.OpenHash, true); panel.ShowPanel(); panel.EnablePanel(); panel.isOpen = true; } }