예제 #1
0
 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);
     }
 }
예제 #2
0
 private static void AfterLoadInstanceNoCallBack <T>(UiInstance inst, bool fromBack, UiInfo uiInfo) where T : UiInstance
 {
     inst.UiInfo = uiInfo;
     ShowUiView(inst, uiInfo.Layer);
     inst.AfterOnShow(fromBack);
 }