static private void BackShowUI(BasePanel _showPanel) { if (_showPanel == null) { return; } _showPanel.BackShowUI(); }
/// <summary> /// 回到上次UI /// </summary> static public void LastUIToUI(BasePanel _fromPanel) { if (currentUIPanel == null || (currentUIPanel != _fromPanel && _fromPanel != null)) { currentUIPanel = _fromPanel; } if (oldUIPanel == null || currentUIPanel == null) { return; } oldUIPanel.BackShowUI(); currentUIPanel.BackHideUI(); }