/// <summary> /// 异步加载主依赖项 /// </summary> internal void LoadManifestAsync(LoadManifestCompleteCallBack loadManifestCompleteCallBack) { LoadManifestCompleteCallBack = loadManifestCompleteCallBack; string assetName = string.Empty; #if UNITY_STANDALONE_WIN assetName = "windows"; #elif UNITY_ANDROID assetName = "android"; #elif UNITY_IPHONE assetName = "ios"; #endif ResourceInfo resourceInfo = GetResourceInfo(assetName); m_ResourceHelper.LoadBytes(PathUtil.GetRemotePath(resourceInfo.StorageInReadOnly ? GameEntry.Resource.ReadOnlyPath : GameEntry.Resource.ReadWritePath, PathUtil.GetResourceNameWithSuffix(assetName)), OnLoadManifestCallBack); }
/// <summary> /// 加载主依赖项 /// </summary> public void LoadManifest(LoadManifestCompleteCallBack loadManifestCompleteCallBack) { m_ResourceManager.LoadManifestAsync(loadManifestCompleteCallBack); }