Ejemplo n.º 1
0
        public Resource GetDownloadResourceByAssetName(string _name)
        {
            string name = this.GetBundleName(_name);

            if (name == string.Empty)
            {
                return(null);
            }
            Resource         res         = null;
            AssetBundleGroup bundlegroup = abg;

            res = bundlegroup.GetDownloadResource(name);
            if (res != null)
            {
                return(res);
            }

            SceneBundleGroup scenegroup = sbg;

            res = scenegroup.GetDownloadResource(name);

            return(res);
        }
Ejemplo n.º 2
0
        public Resource GetDownloadResource(string name)
        {
            Resource         res         = null;
            AssetBundleGroup bundlegroup = abg;

            res = bundlegroup.GetDownloadResource(name);
            if (res != null)
            {
                return(res);
            }

            SceneBundleGroup scenegroup = sbg;

            res = scenegroup.GetDownloadResource(name);
            if (res != null)
            {
                return(res);
            }
            WWWFileGroup filegroup = wfg;

            res = filegroup.GetDownloadResource(GetFileNameByBundleName(name));
            return(res);
        }