Exemple #1
0
        /// <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);
        }
Exemple #2
0
 /// <summary>
 /// 加载主依赖项
 /// </summary>
 public void LoadManifest(LoadManifestCompleteCallBack loadManifestCompleteCallBack)
 {
     m_ResourceManager.LoadManifestAsync(loadManifestCompleteCallBack);
 }