From 99f8ddb28aa73a939599fd164711b914162bace1 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 15 十一月 2018 11:44:36 +0800
Subject: [PATCH] 4709 【1.3】【前端】魔族法宝副本修改(新增多个小关卡)
---
Core/ResModule/ScriptableObjectLoader.cs | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/Core/ResModule/ScriptableObjectLoader.cs b/Core/ResModule/ScriptableObjectLoader.cs
index 118e2f6..f33838c 100644
--- a/Core/ResModule/ScriptableObjectLoader.cs
+++ b/Core/ResModule/ScriptableObjectLoader.cs
@@ -22,6 +22,7 @@
public const string SoMapObjectGenerate_Suffix = "SoMapObjectGenerate_";
public const string SoTreasureMeridian_Suffix = "SoTreasureMeridian_";
public const string SoTreasure3D_Suffix = "SoTreasure3D_";
+ public const string SoDemonDungeon_Suffix = "SoDemonDungeon_";
public static SoMap LoadSoMapObjectGenerate(int mapID)
{
@@ -426,4 +427,34 @@
return config;
}
+
+ public static DemonDungeonScriptable LoadSoDemonDungeon(int _id)
+ {
+ DemonDungeonScriptable config = null;
+ if (AssetSource.refdataFromEditor)
+ {
+#if UNITY_EDITOR
+ var resourcePath = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath,
+ "Refdata/ScriptableObject/SoDemonDungeon/",
+ SoDemonDungeon_Suffix,
+ _id,
+ ".asset");
+
+ config = AssetDatabase.LoadAssetAtPath<DemonDungeonScriptable>(resourcePath);
+#endif
+ }
+ else
+ {
+ var assetName = StringUtility.Contact(SoDemonDungeon_Suffix, _id);
+ var assetInfo = new AssetInfo(bundleName, assetName);
+ config = AssetBundleUtility.Instance.Sync_LoadAsset(assetInfo) as DemonDungeonScriptable;
+ }
+
+ if (config == null)
+ {
+ //Debug.LogErrorFormat("ScriptableObjectLoader.TreasureMeridianConfig() => 鍔犺浇涓嶅埌璧勬簮: {0}.", _id);
+ }
+
+ return config;
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0