private bool IsAvailableBundleName(string assetBundleName, string assetBundleVariant, AssetBundle selfAssetBundle)
        {
            AssetBundle findAssetBundle = GetAssetBundle(assetBundleName, assetBundleVariant);

            if (findAssetBundle != null)
            {
                return(findAssetBundle == selfAssetBundle);
            }

            foreach (AssetBundle assetBundle in m_AssetBundles.Values)
            {
                if (selfAssetBundle != null && assetBundle == selfAssetBundle)
                {
                    continue;
                }

                if (assetBundle.Name == assetBundleName)
                {
                    if (assetBundle.Variant == null && assetBundleVariant != null)
                    {
                        return(false);
                    }

                    if (assetBundle.Variant != null && assetBundleVariant == null)
                    {
                        return(false);
                    }
                }

                if (assetBundle.Name.Length > assetBundleName.Length &&
                    assetBundle.Name.IndexOf(assetBundleName, StringComparison.CurrentCultureIgnoreCase) == 0 &&
                    assetBundle.Name[assetBundleName.Length] == '/')
                {
                    return(false);
                }

                if (assetBundleName.Length > assetBundle.Name.Length &&
                    assetBundleName.IndexOf(assetBundle.Name, StringComparison.CurrentCultureIgnoreCase) == 0 &&
                    assetBundleName[assetBundle.Name.Length] == '/')
                {
                    return(false);
                }
            }

            return(true);
        }