diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua index 49a49a562e..241167cc90 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua @@ -205,7 +205,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss, enemyId) self.rageSlider.fillAmount = self.role.Rage / 4 self.rageText.gameObject:SetActive(false) self.rageText.text = "" - self.currAniName = "Attack"--"fight" + self.currAniName = "Stand"--"fight" self.effect_fly = Util.GetGameObject(go, "c_long_zhandou_lizi") self.effect_fly:SetActive(self.role.star >= 14) -- 伤害文字显示 @@ -486,7 +486,7 @@ function EnemyView:PlaySpineAnim(gog, time, name, isLoop) gog.AnimationState:SetAnimation(0, "Stand", true)--"fight" end - self.currAniName = "Attack"--"fight" + self.currAniName = "Stand"--"fight" end gog.AnimationState:ClearTracks() -- 清除上一个动画的影响(修复概率攻击动画播放错误的问题) gog.AnimationState:SetAnimation(time, name, isLoop) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua index 9f77171e11..dc729c888e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/MonsterView.lua @@ -352,9 +352,9 @@ function MonsterView:OnSkillCastingStart(skill) end if self.isMainPlayer then - self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Attack" , false)--"fight" + self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Stand" , false)--"fight" else - self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Attack" , false) + self:PlaySpineAnim(self.RoleLiveGOGraphic2, 0, "Stand" , false) end end diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua index 084fe340a6..a4a5190161 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua @@ -525,10 +525,11 @@ function PlayerView:PlaySpineAnim(gog, time, name, isLoop) return end if isLoop then - LogError("===========================================") + LogError("==========================================="..name) self.currAniName=name gog.AnimationState:SetAnimation(time, name, isLoop) else + LogError("==========================================="..name) local _complete = nil _complete = function(state) gog.AnimationState.Complete = gog.AnimationState.Complete - _complete @@ -537,7 +538,7 @@ function PlayerView:PlaySpineAnim(gog, time, name, isLoop) if endWith(gog.gameObject.name,"skill") then gog.gameObject:SetActive(false) else - gog.AnimationState:SetAnimation(0, "Skill_01", true) + gog.AnimationState:SetAnimation(0, "Stand", true) end end gog.AnimationState:ClearTracks() -- 清除上一个动画的影响(修复概率攻击动画播放错误的问题) diff --git a/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberGamePanel.lua b/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberGamePanel.lua index c1d2c8916e..adcbc1a55a 100644 --- a/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberGamePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RatioNumber/RatioNumberGamePanel.lua @@ -558,7 +558,7 @@ function this:BattleLogic(curPos) if arr then for i = 1, #arr do local anim =arr[i] - anim.anim.AnimationState:SetAnimation(0,"Attack",true) + anim.anim.AnimationState:SetAnimation(0,"Stand",true) local arrow = Util.GetGameObject(anim.enemy,"attackArr") arrow:SetActive(true) this.SetArrowRot(arrow)