示例#1
0
        public IAsyncTask LoadAssetAsync <T>(string assetPath, Action <bool, T> callback) where T : UnityEngine.Object
        {
            string            assetBundleName = mAssetManifest[assetPath];
            LoadAssetTask <T> assetTask       = new LoadAssetTask <T>(assetPath, assetBundleName, mAssetBundleHelper, callback);
            IAsyncTask        bundleTask      = mAssetBundleHelper.LoadAssetBundleAsync(assetBundleName, assetTask.OnAssetBundleLoadCompleted);

            assetTask.bundleTask = bundleTask;
            return(assetTask);
        }