Ejemplo n.º 1
0
 /// <summary>
 /// 获取BundleInfo
 /// </summary>
 /// <param name="abPath"></param>
 /// <returns></returns>
 public BundleInfo GetBundleInfo(string abPath)
 {
     foreach (MultiBundleInfo item in bundleInfos)
     {
         if (item.Multiple)
         {
             foreach (BundleInfo subItem in item.subBundleInfos)
             {
                 if (FilePathTools.NormalizePath(subItem.Path).ToLower() == abPath.ToLower())
                 {
                     return(subItem);
                 }
             }
         }
         else
         {
             if (item.Path.ToLower() == abPath.ToLower())
             {
                 return(item);
             }
         }
     }
     return(null);
 }