| | |
| | | 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)
|
| | | {
|