| | |
| | | } |
| | | } |
| | | |
| | | var realmConfigs = ConfigManager.Instance.GetAllValues<RealmConfig>();
|
| | | foreach (var _realmConfig in realmConfigs)
|
| | | {
|
| | | _npcModel = ConfigManager.Instance.GetTemplate<NPCConfig>(_realmConfig.BossID);
|
| | | if (_npcModel == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | |
|
| | | if (_npcModel.MODE.Equals(modelName))
|
| | | {
|
| | | BuildRealmAnimatorController(modelName);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | BuildPrefab(modelName); |
| | | } |
| | | |
| | |
| | | BuildAnimatorController(modelName, "Temple_AnimatorController_BossShow", "animatorBuildConfig_BossShow"); |
| | | } |
| | | |
| | | public void BuildRealmAnimatorController(string modelName)
|
| | | {
|
| | | if (!IsBuildAnimatorController)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | BuildAnimatorController(modelName, "Temple_AnimatorController_Realm", "animatorBuildConfig_Realm");
|
| | | }
|
| | |
|
| | | protected override void OnSetupRenderer(string resPath, string resName, ref Renderer _renderer) |
| | | { |
| | | string _texturePath = string.Format("Assets/ART/Role/{0}/Materials/{1}.png", resPath, resName); |
| | |
| | | _absAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, resName, AnimatorControllerLoader.controllerShowSuffix, resName);
|
| | | _assetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutAssetPath, resName, AnimatorControllerLoader.controllerShowSuffix, resName);
|
| | | }
|
| | | if (templeName.Equals("Temple_AnimatorController_Realm"))
|
| | | {
|
| | | _absAssetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutPath, resName, AnimatorControllerLoader.controllerRealmSuffix, resName);
|
| | | _assetPath = string.Format("{0}Mob/{1}/{2}{3}.controller", ResourcesPath.ResourcesOutAssetPath, resName, AnimatorControllerLoader.controllerRealmSuffix, resName);
|
| | | }
|
| | | string _templePath = string.Format("{0}Mob/{1}.controller", ResourcesPath.ResourcesOutPath, templeName);
|
| | |
|
| | | if (File.Exists(_absAssetPath))
|