/// <summary> /// ui的隐藏事件, 通过BaseUi的隐藏方法调用过来的 /// </summary> /// <param name="ui"></param> public void OnHide(BaseUi ui) { autoDepth.Remove(autoDepth.GetUiPanel(ui)); if (ui.destroyOnClose) { ui.Destroy(); } else { ui.gameObject.SetActive(false); } }