/// <summary> /// ui prefab被创建后, 初始化 /// </summary> /// <param name="ui"></param> private void InitUi(BaseUi ui) { if (ui != null) { UiRelations.Instance.AddUi(ui); ui.OnShow = uiShell.OnShow; ui.OnHide = uiShell.OnHide; ui.OnDestroyUi = OnDestroyUi; ui.RunInitialize(); } }