示例#1
0
 private void PrePushPanel(string pageName, UIBasePanel pageInstance, Action callback, object pageData, bool isAsync)
 {
     if (string.IsNullOrEmpty(pageName) || pageInstance == null)
     {
         Debug.LogError("[UI] show page error with :" + pageName + " maybe null instance.");
         return;
     }
     if (mOpenedUIList.ContainsKey(pageName))
     {
         mCurrPage = mOpenedUIList[pageName];
     }
     else
     {
         mOpenedUIList.Add(pageName, pageInstance);
         mCurrPage = pageInstance;
     }
     mCurrPage.OnPreloading();
 }