Exemple #1
0
        internal ManifestRequest Initialize()
        {
            if (string.IsNullOrEmpty(s_BasePath))
            {
                s_BasePath = Application.streamingAssetsPath + Path.DirectorySeparatorChar;
            }

            if (string.IsNullOrEmpty(s_UpdatePath))
            {
                s_UpdatePath = Application.persistentDataPath + Path.DirectorySeparatorChar;
            }

            //var path = string.Format("{0}/{1}", s_BasePath, Versions.Dataname);

            Clear();

            INFO(string.Format(
                     "Initialize with: runtimeMode={0}\nbasePath:{1}\nupdatePath={2}",
                     s_RuntimeMode, s_BasePath, s_UpdatePath));

            //if (runtimeMode)
            //{
            //    if (!Versions.LoadDisk(path))
            //    {
            //        throw new Exception("vfile load failed! path=" + path);
            //    }
            //}

            var request = new ManifestRequest {
                Url = k_XAssetManifestAsset
            };

            AddAssetRequest(request);
            return(request);
        }
Exemple #2
0
 public WaitForAssetMgrInitialized(ManifestRequest assetsInitRequest)
 {
     m_AssetsInitRequest = assetsInitRequest;
 }