public void LoadAssetBundle(string bundleID, Action<AssetBundle> callBack = null, uint version = 0)
{
bundleID = bundleID.ToLower();
//Check to see if bundle is already loaded in memory
IEnumerable bundles = AssetBundle.GetAllLoadedAssetBundles();
foreach (AssetBundle bundle in bundles)
{
if (bundle.name == bundleID)
{
callBack(bundle);
return;
}
}
//this will call the SDK loading api in the future
//For now, we'll directly load the asset bundle
StartCoroutine(DownloadAssetBundle(bundleID, callBack, version));
}
private IEnumerator DownloadAssetBundle(string bundleID, Action<AssetBundle> callBack, uint version = 0)
{
<