From b971112ba92ba116a76a6dfbc2dde3a6f3d34095 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 12 二月 2026 11:12:35 +0800
Subject: [PATCH] 编辑器 模拟使用资源部分

---
 Assets/Launch/Config/AssetSource.cs |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/Assets/Launch/Config/AssetSource.cs b/Assets/Launch/Config/AssetSource.cs
index 8e30144..a8279ae 100644
--- a/Assets/Launch/Config/AssetSource.cs
+++ b/Assets/Launch/Config/AssetSource.cs
@@ -1,24 +1,18 @@
-锘縰sing System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
+锘縰sing UnityEngine;
 
 
 public class AssetSource
 {
+    /// <summary>
+    /// 缂栬緫鍣ㄤ笅閫氳繃 EditorPrefs 鎸佷箙鍖� AB 妯″紡寮�鍏筹紙涓嶅彈 PlayerPrefs 娓呯悊褰卞搷锛夈��
+    /// 闈炵紪杈戝櫒鐜濮嬬粓杩斿洖 true銆�
+    /// </summary>
     public static bool isUseAssetBundle
     {
         get
         {
 #if UNITY_EDITOR
-            //鏈満娴嬭瘯涓嬭浇璧勬簮 闇�鎷疯礉鍩烘湰鏂囨湰璧勬簮鍒� Assets\StreamingAssets\android涓嬶紝涓轰簡鏂逛究鐩存帴鎷疯礉鎵�鏈夎祫婧愬嵆鍙�
-            if (!PlayerPrefs.HasKey("InGameDownLoadTestEanble"))
-            {
-                return false;
-            }
-            else
-            {
-                return PlayerPrefs.GetInt("InGameDownLoadTestEanble") == 1;
-            }
+            return UnityEditor.EditorPrefs.GetBool("YooAsset_UseAssetBundle", false);
 #else
             return true;
 #endif

--
Gitblit v1.8.0