Exemplo n.º 1
0
        private void OnPackageUpdateResult(ResPackageHandler handler)
        {
            ResPackageWrap wrap = m_UpdatePackageList[m_UpdateIndex];

            wrap.FireEvent(RES_UPDATE_EVENT_FINISH);
            TryStartNextUpdate();
        }
Exemplo n.º 2
0
 private void OnPackageUpdateCheckResult(ResPackageHandler handler)
 {
     ++m_CheckFinishCount;
     if (m_CheckFinishCount == m_UpdatePackageList.Count)
     {
         FireCheckUpdateEvent();
     }
 }
Exemplo n.º 3
0
        protected void AddDownloadFile(string name)
        {
            string resName = ResPackageHandler.AssetName2ResName(name);

            m_ResLoader.Add2Load(resName, OnConfigFileDownloadResult);

            HotUpdateRes res          = ResMgr.S.GetRes <HotUpdateRes>(resName);
            string       relativePath = GetAssetRelativePath(name);
            string       fullPath     = FilePath.persistentDataPath4Res + relativePath;

            res.SetUpdateInfo(fullPath, GetAssetUrl(relativePath), 1000, ConfigFileValidChecker);
        }