From d6cef008f1f3779bdbada25c7be33ac8d7ca44e7 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 28 十一月 2025 17:57:42 +0800
Subject: [PATCH] 0312 根据是否启动下载来调用资源
---
Assets/Launch/Config/AssetSource.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Assets/Launch/Config/AssetSource.cs b/Assets/Launch/Config/AssetSource.cs
index e87a647..a50754a 100644
--- a/Assets/Launch/Config/AssetSource.cs
+++ b/Assets/Launch/Config/AssetSource.cs
@@ -10,7 +10,14 @@
get
{
#if UNITY_EDITOR
- return false;
+ if (!PlayerPrefs.HasKey("InGameDownLoadTestEanble"))
+ {
+ return false;
+ }
+ else
+ {
+ return PlayerPrefs.GetInt("InGameDownLoadTestEanble") == 1;
+ }
#else
return true;
#endif
--
Gitblit v1.8.0