private static void AfterLoadInstance <T>(UiInstance inst, UiInfo uiInfo, bool fromBack, Action <T> notify) where T : UiInstance { inst.UiInfo = uiInfo; ShowUiView(inst, uiInfo.Layer); inst.AfterOnShow(fromBack); if (notify != null) { notify.Invoke(inst as T); } }
private static void AfterLoadInstanceNoCallBack <T>(UiInstance inst, bool fromBack, UiInfo uiInfo) where T : UiInstance { inst.UiInfo = uiInfo; ShowUiView(inst, uiInfo.Layer); inst.AfterOnShow(fromBack); }