private string GetRealAssetPath(string abName)
{
if (abName.Equals(Tools.GetOS()))
{
return(abName);
}
abName = abName.ToLower();
if (!abName.EndsWith(GameSetting.ExtName))
{
abName += GameSetting.ExtName;
}
if (abName.Contains("/"))
{
return(abName);
}
if (mAssetBundleManifest == null)
{
return(null);
}
string[] paths = mAssetBundleManifest.GetAllAssetBundles();
for (int i = 0; i < paths.Length; i++)
{
int index = paths[i].LastIndexOf('/');
string path = paths[i].Remove(0, index + 1);
if (path.Equals(abName))
{
return(paths[i]);
}
}
Debug.LogError("GetRealAssetPath Error:>>" + abName);
return(null);
}