Ejemplo n.º 1
0
 private static void OnWidgetLoaded(UIWidget[] spList, OnUIWidgetAtlasAllLoaded onAllLoaded, GameObject oGo, params object[] args)
 {
     if (spList == null || oGo == null)
     {
         return;
     }
     for (int i = 0; i < spList.Length; i++)
     {
         UIWidget uIWidget = spList[i];
         if (!(uIWidget == null))
         {
             if (uIWidget.CheckWaitLoadingAtlas())
             {
                 return;
             }
         }
     }
     WidgetHelper.ClearSprite(spList);
     if (onAllLoaded != null)
     {
         onAllLoaded(oGo, args);
     }
 }