Exemplo n.º 1
0
        /// <summary>
        /// 加载资源
        /// </summary>
        /// <param name="assetPath">资源路径,可能是本地资源,也可能是远程服务器上的资源</param>
        /// <param name="isRemoveFile">是否是远程服务器资源</param>
        public override void loadAsset(string assetPath)
        {
            if (IsLoading == true)
            {
                return;
            }
            IsLoading      = true;
            NavitePath     = assetPath;
            this.AssetPath = PersistantFileManager.getLocalSourcePath(NavitePath);

            doLoadAsset();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 加载资源
        /// </summary>
        /// <param name="assetPath">资源路径,可能是本地资源,也可能是远程服务器上的资源</param>
        /// <param name="isRemoveFile">是否是远程服务器资源</param>
        public override void loadAsset(string assetPath)
        {
            if (IsLoading == true)
            {
                return;
            }

            this.IsLoading  = true;
            this.NavitePath = assetPath;
            this.AssetPath  = PersistantFileManager.getRemoteResourcePath(assetPath);;

            StartCoroutine(doLoadAsset());
        }