From 9df8bad7e1e0ebbc9a50f6d3f06320ffacbe8b8b Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1545929779@qq.com> Date: Mon, 15 Apr 2024 18:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=85=B5=E6=98=BE=E7=A4=BA=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Fight/FightPointPassMainPanel.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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