//加载Bundle的依赖资源清单
private IEnumerator LoadAssetbundleManifest(Action<bool> action)
{
if (_assetBundleManifest != null)
{
if (action != null)
action(true);
}
else
{
//依赖资源的名字和平台的名字一样加载时直接得到平台名称就可以了
string path = GameManager.Instance.GetFileFullPath(MiscUtils.GetCurrentPlatform() + "/" + MiscUtils.GetCurrentPlatform());
WWW www = new WWW(path);
yield return www;
if (www.isDone && www.error == null)
{
if (_assetBundleManifest != null)
_assetBundleManifest = null;
_assetBundleManifest = (AssetBundleManifest)www.assetBundle.LoadAsset("assetbundlemanifest");
www.assetBundle.Unload(false);
if (action != null)
action(true);
}