示例#1
0
        public static IEnumerator ConfigureLocalAssetManager()
        {
            AssetManager.UnloadAssetBundleManifest();
            AssetManager.SetAssetBundlesConfiguration(string.Empty, true);
            AssetBundleManifestLoadRequest loadOperation = AssetManager.LoadAssetBundleManifest(1, true);

            while (!loadOperation.get_isDone())
            {
                yield return(null);
            }
            if (AssetManagerError.op_Implicit(loadOperation.get_error()) != 0)
            {
                Log.Error($"Could not load manifests data: {loadOperation.get_error()}.", 185, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\ApplicationStarter.cs");
            }
        }
示例#2
0
        public static IEnumerator ConfigureAssetManager(string serverUrl, bool patchAvailable)
        {
            AssetManager.UnloadAssetBundleManifest();
            AssetManager.SetAssetBundlesConfiguration(serverUrl, true);
            AssetBundleSource val = (!patchAvailable) ? 1 : 0;
            AssetBundleManifestLoadRequest loadOperation = AssetManager.LoadAssetBundleManifest(val, true);

            while (!loadOperation.get_isDone())
            {
                yield return(null);
            }
            if (AssetManagerError.op_Implicit(loadOperation.get_error()) != 0)
            {
                Log.Error($"Could not load manifests data: {loadOperation.get_error()}.", 159, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\ApplicationStarter.cs");
            }
        }