Exemplo n.º 1
0
 private void Update()
 {
     if (!beginPack)
     {
         return;
     }
     if (j >= 0)
     {
         j--; return;
     }
     if (atlas != null && atlas.Length > i)
     {
         UnityEngine.Object o = atlas[i];
         if (atlasInfoDic.ContainsKey(o))
         {
             if (atlasInfoDic[o].select)
             {
                 NGUISettings.unityPacking     = atlasInfoDic[o].unityPacking;
                 NGUISettings.forceSquareAtlas = atlasInfoDic[o].forceSquareAtlas;
                 UIAtlasMaker.OneKeyPack(atlas[i]);
                 i++;
                 j = 20;
             }
             else
             {
                 i++;
             }
         }
     }
     else
     {
         Debug.LogError("一键打包图集完成");
         Close();
         beginPack = false;
         NGUISettings.unityPacking     = true;
         NGUISettings.forceSquareAtlas = false;
         return;
     }
 }