Пример #1
0
 public override void RefreshWindowData(object windowData)
 {
     base.RefreshWindowData(windowData);
     if (windowData is LoadingDataUIData)
     {
         LoadingDataUIData loadingDataUIData = (LoadingDataUIData)windowData;
         this.m_ContentText.text         = loadingDataUIData.TipsContent;
         MaxLastTime                     = loadingDataUIData.MaxLastTime;
         this.MaxTimeCloseWindowCallBack = loadingDataUIData.MaxTimeCloseWindowCallBack;
         StartCountDown                  = true;
     }
 }
Пример #2
0
 /// <summary>
 /// 显示数据加载界面
 /// </summary>
 /// <param name="timeOut"></param>
 /// <param name="timeOutCallBack"></param>
 public static void Show(int timeOut = 5, System.Action timeOutCallBack = null)
 {
     if (openedWindowNode == null)
     {
         WindowNodeInitParam initParam = new WindowNodeInitParam(UIAssetName);
         initParam.NodeType = BaseNodeType.AboveNormal;
         LoadingDataUIData uiData = new LoadingDataUIData();
         uiData.MaxLastTime = timeOut;
         uiData.MaxTimeCloseWindowCallBack = timeOutCallBack;
         initParam.WindowData = uiData;
         openedWindowNode     = WindowManager.Instance.OpenWindow(initParam);
     }
 }