예제 #1
0
        public void ReleaseAssetCallback(string name, Action <string, UnityEngine.Object> func)
        {
            if (name == null || name == string.Empty)
            {
                return;
            }

            AssetBundleGroup group = abg;

            group.ReleaseAssetCallback(name, func);
        }
예제 #2
0
        internal override void Start()
        {
            loadingProgress = AddComponent <LoadingProgress>();
            abg             = AddComponent <AssetBundleGroup>();
            sbg             = AddComponent <SceneBundleGroup>();
            wfg             = AddComponent <WWWFileGroup>();
            wag             = AddComponent <WWWAudioGroup>();
            gsd             = AddComponent <GOEStringDelegate>();
            glm             = AddComponent <GOELoaderMgr>();
            rbl             = AddComponent <ResBundleList>();
            rim             = AddComponent <ResIdxMap>();
            brn             = AddComponent <BundleRename>();
            lr = AddComponent <LocaleResource>();

            initialize();
        }
예제 #3
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);
        }
예제 #4
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(name);
            return(res);
        }
예제 #5
0
        public bool IsBundleCached(string name)
        {
            AssetBundleGroup group = abg;

            return(group.IsBundleCached(name));
        }
예제 #6
0
        public void CacheSceneBundleDependency(GOEBundle bundle)
        {
            AssetBundleGroup group = abg;

            group.CacheSceneBundleDependency(bundle);
        }
예제 #7
0
 public GOEAssetBundleCacheManager(AssetBundleGroup group)
 {
     this.group = group;
 }