コード例 #1
0
        public override AssetBundleLoading LoadAssetBundle(string name)
        {
            string url = _assetBundlePathPrefix + name;

            return(OperationFactory.CreateAssetBundleLoadingFromFile(name, url,
                                                                     AssetBundle.LoadFromFileAsync(url)));
        }
コード例 #2
0
        public override AssetBundleLoading LoadAssetBundle(string name)
        {
            string url = _assetBundlePathPrefix + name;

            // [PPAN] ╪стьMD5 AssetBundles
            if (!string.IsNullOrEmpty(useMD5AB))
            {
                string strMD5 = ReadMD5FromXL(name);
                if (string.IsNullOrEmpty(strMD5))
                {
                    Debug.LogError(name + " has not MD5 file");
                }
                string strURLwithMD5 = string.Format("{0}{1}_{2}", _assetBundlePathPrefix, name, strMD5);
                //Debug.Log("AsyncLocalWarehouse strURLwithMD5 = " + strURLwithMD5);
                return(OperationFactory.CreateAssetBundleLoadingFromFile(name, url, AssetBundle.LoadFromFileAsync(strURLwithMD5)));
            }
            else
            {
                return(OperationFactory.CreateAssetBundleLoadingFromFile(name, url,
                                                                         AssetBundle.LoadFromFileAsync(url)));
            }
        }