diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 2beb0ba01b..9e58be76f4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -11,7 +11,7 @@ local fightLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig) local fightLevelSetConfig = ConfigManager.GetConfig(ConfigName.MainLevelSettingConfig) local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig) local aaa=ConfigManager.GetConfigData(ConfigName.SpecialConfig,180).Value - +local soliderSettingConfig=ConfigManager.GetConfig(ConfigName.SoldiersSetting) local roleConfig=ConfigManager.GetConfig(ConfigName.RoleConfig) local curSoliderStageConfig local cost=string.split(aaa,"#") @@ -619,7 +619,11 @@ function this.ShowBattleInfo() soliderPreList[index].effect.transform.localPosition = Vector3.New(0, 0, 0) local spineObj if soliderPreList[index].spine==nil then - spineObj= poolManager:LoadLive("live2d_npc_map_boy",soliderPreList[index].pos.transform, Vector3.one, Vector3.zero) + local spineName="live2d_npc_map_boy" + if soliderSettingConfig[v.id] then + spineName=GetResourcePath(soliderSettingConfig[v.id].Live) + end + spineObj= poolManager:LoadLive(spineName,soliderPreList[index].pos.transform, Vector3.one, Vector3.zero) else --roleLiveGO=heroSpineList[heroData.live] end @@ -726,6 +730,7 @@ function this.BattleLogic() --aaa.spine.AnimationState:SetAnimation(0, "touch", true) Util.ClearTrailRender(aaa.effect) aaa.effect:SetActive(true) + aaa.spineAni.AnimationState:SetAnimation(0, "attack3",false) aaa.effect:GetComponent("RectTransform"):DOMove(this.enemyPos.transform.position, 0.6, false):OnComplete(function () if aaa.effect then aaa.effect:SetActive(false) @@ -734,6 +739,7 @@ function this.BattleLogic() bossHp=bossHp-attack allAttacck=allAttacck+attack this.Floater:ArtFloatingOnHook(ArtFloatingType.Damage,ArtFloatingColor.White,attack) + aaa.spineAni.AnimationState:SetAnimation(0, "move3",true) this.SetHp(curSoliderStageConfig.Hp,bossHp,curSoliderStageConfig.HpNumber) end) --end