From a80d9e64b60403c71ff7ff32c9e94e6833f50ace Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 10 九月 2025 22:28:26 +0800
Subject: [PATCH] 0312 优化删除物品的通知
---
Main/ResModule/ResManager.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Main/ResModule/ResManager.cs b/Main/ResModule/ResManager.cs
index 3d68b85..e05b672 100644
--- a/Main/ResModule/ResManager.cs
+++ b/Main/ResModule/ResManager.cs
@@ -65,8 +65,9 @@
{
{typeof(GameObject), "prefab"},
{typeof(Sprite), "png"},
- {typeof(Texture2D), "png"},
- {typeof(Shader), "shader"},
+ {typeof(Texture2D), "jpg"},
+ {typeof(Texture), "jpg"},
+ { typeof(Shader), "shader"},
{typeof(TextAsset), "txt"},
{typeof(AudioClip), "wav"},
{typeof(Font), "ttf"},
@@ -162,13 +163,13 @@
public string[] LoadConfig(string name)
{
string path = string.Empty;
+#if UNITY_EDITOR
if (!AssetSource.isUseAssetBundle)
{
-#if UNITY_EDITOR
path = ResourcesPath.CONFIG_FODLER + "/" + name + ".txt";
-#endif
}
else
+#endif
{
path = AssetVersionUtility.GetAssetFilePath($"Config/{name}.txt");
}
--
Gitblit v1.8.0