Example #1
0
        // step 2
        private void LoadFileList()
        {
            GameManager gameManager = GameManager.Instance;

            HTTPTool.GetText(PathConst.FileListPath, (text) =>
            {
                string[] strs = text.Split('\n');
                gameManager.SetGameVersion(strs[0]);
            });
        }
Example #2
0
        // step 3
        private void LoadAssetBundleManifest()
        {
            HTTPTool.GetAssetBundle(PathConst.AssetBundleManifestPath, ab =>
            {
                if (ab == null)
                {
                    Debug.LogError($"mainfest is null in {PathConst.AssetBundleManifestPath}");
                }

                _bundleManifest = ab.LoadAllAssets <AssetBundleManifest>()?[0];
                if (_bundleManifest == null)
                {
                    Debug.LogError($"mainfest asset is null in {PathConst.AssetBundleManifestPath}");
                }
            });
        }