From 25eb0e50d4e815efb16d1a9953beac6ea1c7cfc3 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期六, 28 三月 2026 10:14:32 +0800
Subject: [PATCH] webgl merge
---
Assets/Editor/Tool/InGameDownTestWindow.cs | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/Assets/Editor/Tool/InGameDownTestWindow.cs b/Assets/Editor/Tool/InGameDownTestWindow.cs
index 256cbdb..42a7ee9 100644
--- a/Assets/Editor/Tool/InGameDownTestWindow.cs
+++ b/Assets/Editor/Tool/InGameDownTestWindow.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
+using Cysharp.Threading.Tasks;
public class InGameDownTestWindow : EditorWindow
{
@@ -22,14 +23,19 @@
{
InGameDownTestUtility.enable = !InGameDownTestUtility.enable;
- if (InGameDownTestUtility.enable)
+ VersionConfig.GetAsync().ContinueWith(config =>
{
- VersionConfig.Get().assetAccess = InstalledAsset.NullAsset;
- }
- else
- {
- VersionConfig.Get().assetAccess = InstalledAsset.IngoreDownLoad;
- }
+ if (InGameDownTestUtility.enable)
+ {
+ VersionConfig.config.assetAccess = InstalledAsset.NullAsset;
+ }
+ else
+ {
+ VersionConfig.config.assetAccess = InstalledAsset.IngoreDownLoad;
+ }
+ }).Forget();
+
+
}
EditorGUILayout.Space();
--
Gitblit v1.8.0