29 lines
727 B
C#
29 lines
727 B
C#
using UnityEngine;
|
|
|
|
namespace CaoCao.Editor
|
|
{
|
|
public class DefaultAssetBundleManifest : IAssetBundleManifest
|
|
{
|
|
private readonly AssetBundleManifest _manifest;
|
|
|
|
public DefaultAssetBundleManifest(AssetBundleManifest manifest)
|
|
{
|
|
_manifest = manifest;
|
|
}
|
|
|
|
public string[] GetAllAssetBundles()
|
|
{
|
|
return _manifest.GetAllAssetBundles();
|
|
}
|
|
|
|
public string[] GetAllDependencies(string assetBundle)
|
|
{
|
|
return _manifest.GetAllDependencies(assetBundle);
|
|
}
|
|
|
|
public string GetAssetBundleHash(string assetBundle)
|
|
{
|
|
return _manifest.GetAssetBundleHash(assetBundle).ToString();
|
|
}
|
|
}
|
|
} |