From d10eb06e8d935a453ad85dc359eab2d8401b2ba9 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期四, 06 十二月 2018 10:31:24 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Core/ResModule/InstanceResourcesLoader.cs | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/Core/ResModule/InstanceResourcesLoader.cs b/Core/ResModule/InstanceResourcesLoader.cs
index df3f2ce..08f8797 100644
--- a/Core/ResModule/InstanceResourcesLoader.cs
+++ b/Core/ResModule/InstanceResourcesLoader.cs
@@ -13,6 +13,35 @@
public static readonly string secondarySuffix = "Prefab_Secondary_";
public static readonly string handSuffix = "Prefab_Hand_";
public static readonly string wingSuffix = "Prefab_Wing_";
+ public static readonly string emptyJyName = "Prefab_Race_JY";
+
+ public static GameObject LoadEmptyJY()
+ {
+ GameObject _prefab = null;
+
+ if (AssetSource.mobFromEditor)
+ {
+#if UNITY_EDITOR
+ string _resourcePath = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath,
+ "Mob/",
+ emptyJyName,
+ ".prefab");
+
+ _prefab = AssetDatabase.LoadAssetAtPath<GameObject>(_resourcePath);
+#endif
+ }
+ else
+ {
+ _prefab = AssetBundleUtility.Instance.Sync_LoadAsset("mob/prefab_race_jy", emptyJyName) as GameObject;
+ }
+
+ if (_prefab == null)
+ {
+ DebugEx.LogErrorFormat("InstanceResourcesLoader.LoadModel() => 鍔犺浇涓嶅埌璧勬簮: {0}/{1} ", "mob/prefab_race_jy", emptyJyName);
+ }
+
+ return _prefab;
+ }
public static GameObject LoadNpc(int id)
{
--
Gitblit v1.8.0