|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | protected static List<MountPointInfo> m_MountPointInfoList = new List<MountPointInfo>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void BuildPrefab(string path, string resName, string suffix) | 
|---|
|  |  |  | public void BuildPrefab(string path, string resName, string suffix, string outName = null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (string.IsNullOrEmpty(outName)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | outName = resName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string _absOriginalePath = string.Format("{0}/ART/Role/{1}/{2}.FBX", Application.dataPath, path, resName); | 
|---|
|  |  |  | string _originalAssetPath = string.Format("Assets/ART/Role/{0}/{1}.FBX", path, resName); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string _absAssetPath = string.Format("{0}Mob/{1}{2}.prefab", ResourcesPath.ResourcesOutPath, suffix, resName); | 
|---|
|  |  |  | string _assetPath = string.Format("{0}Mob/{1}{2}.prefab", ResourcesPath.ResourcesOutAssetPath, suffix, resName); | 
|---|
|  |  |  | string _absAssetPath = string.Format("{0}Mob/{1}{2}.prefab", ResourcesPath.ResourcesOutPath, suffix, outName); | 
|---|
|  |  |  | string _assetPath = string.Format("{0}Mob/{1}{2}.prefab", ResourcesPath.ResourcesOutAssetPath, suffix, outName); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string _acAbsAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, path, AnimatorControllerLoader.controllerSuffix, path); | 
|---|
|  |  |  | string _acAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutAssetPath, path, AnimatorControllerLoader.controllerSuffix, path); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 加载特效 | 
|---|
|  |  |  | if (InstanceResourcesLoader.horseSuffix.Equals(suffix) | 
|---|
|  |  |  | || resName.Contains("B_Cw")) | 
|---|
|  |  |  | if (outName.StartsWith("M") | 
|---|
|  |  |  | || outName.StartsWith("N") | 
|---|
|  |  |  | || outName.StartsWith("B_") | 
|---|
|  |  |  | || outName.StartsWith("Zq")) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | HandlerModelEffect("horseEffectConfig", null, resName, ref _prefab); | 
|---|
|  |  |  | HandlerModelEffect("horseEffectConfig", null, outName, ref _prefab); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else if (InstanceResourcesLoader.raceSuffix.Equals(suffix)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | AssetDatabase.Refresh(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void BuildAnimatorController(string resName, string templeName, string configName) | 
|---|
|  |  |  | public static void BuildAnimatorController(string resName, string templeName, string configName, string outName = null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (string.IsNullOrEmpty(outName)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | outName = resName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string _absAssetPath = string.Format("{0}Mob/{1}", ResourcesPath.ResourcesOutPath, resName); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (!Directory.Exists(_absAssetPath)) | 
|---|
|  |  |  | 
|---|
|  |  |  | Directory.CreateDirectory(_absAssetPath); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | _absAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, resName, AnimatorControllerLoader.controllerSuffix, resName); | 
|---|
|  |  |  | _absAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, resName, AnimatorControllerLoader.controllerSuffix, outName); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string _assetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutAssetPath, resName, AnimatorControllerLoader.controllerSuffix, resName); | 
|---|
|  |  |  | string _assetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutAssetPath, resName, AnimatorControllerLoader.controllerSuffix, outName); | 
|---|
|  |  |  | if (templeName.Equals("Temple_AnimatorController_BossShow")) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | _absAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, resName, AnimatorControllerLoader.controllerShowSuffix, resName); | 
|---|