namespace NBC.Asset { public class BundleInfo { public readonly BundleData Bundle; public BundleLoadMode LoadMode; public BundleInfo(BundleData bundleData) { Bundle = bundleData; } /// /// 资源地址 /// public string BundlePath { get { if (LoadMode == BundleLoadMode.LoadFromStreaming) { return Bundle.StreamingFilePath; } if (LoadMode == BundleLoadMode.LoadFromCache) { return Bundle.CachedDataFilePath; } if (LoadMode == BundleLoadMode.LoadFromRemote) { return Bundle.RemoteDataFilePath; } return string.Empty; } } } }