From d5bf165ef28b530ed531aed097ad301278c5fcae Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 15 十一月 2018 14:33:35 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
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