Esempio n. 1
0
        private void beginCampare()
        {
            if (_localMapText == null || _serverMapText == null)
            {
                return;
            }
            BundleRename sbr = brn;

            sbr.Read(_serverMapText);
            BundleRename lbr = new BundleRename();

            lbr.Read(_localMapText);
            upatingRes = new List <string>();
            foreach (GOEBundleMapItem item in sbr.bundlemap.BundleMap.Values)
            {
                if (lbr.GetBundleNameFromOriginalName(item.Name) == item.FinalName)
                {
                    continue;
                }
                string path = Application.persistentDataPath + "/" + item.FinalName;
                if (File.Exists(path))
                {
                    continue;
                }
                loadNum++;
                upatingRes.Add(item.Name);
                GOERoot.ResMgrImp.getWWWFromServer(item.FinalName, onGotWWW);
            }
            if (upatingRes.Count > 0 && EngineDelegate.OnUpdateResource != null)
            {
                EngineDelegate.OnUpdateResource.Invoke(upatingRes.ToArray());
            }
            sbr.AppendRead(_localMapText);
            checkCampareEnd();
        }
Esempio n. 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();
        }