挂机优化

SK_LongZhu
PC-202302260912\Administrator 2025-08-27 18:56:19 +08:00
parent b56978d913
commit 79a516b796
1 changed files with 5 additions and 3 deletions

View File

@ -449,7 +449,8 @@ function this:stopFindEnemy()
--左右开始播放人物站立动画
this:allLiveNodesPlayAnim(liveNodesLeft, 0, RoleAnimationName.Stand, true)
this:allLiveNodesPlayAnim(liveNodesRight, 0, RoleAnimationName.Stand, true)
--this:allLiveNodesPlayAnim(liveNodesLeft, 0, RoleAnimationName.Run, true)
--this:allLiveNodesPlayAnim(liveNodesRight, 0, RoleAnimationName.Run, true)
--开始回合战斗
this:turn()
end
@ -1096,8 +1097,9 @@ function this:ClearDelayFunc(t)
end
function this:PlaySpineAnim(spineComponent, time, name, isLoop)
--LogError("=============================================="..name)
if isLoop then
spineComponent.AnimationState:ClearTracks()
--spineComponent.AnimationState:ClearTracks()
spineComponent.AnimationState:SetAnimation(time, name, isLoop)
else
local _complete = nil
@ -1338,7 +1340,6 @@ function this:OnDamaged(livego, livenode, dmg, bCrit, combat, skill, isLeft, tur
if combat == nil then
LogError("onhook OnDamaged combat nil")
end
LogError("onhook OnDamaged combat nil")
if combat and #combat.SkillNumbetTime > 0
--and combat.SkillNumber > 1 and #combat.SkillNumbetTime == combat.SkillNumber - 1
then
@ -1641,6 +1642,7 @@ function this:RoleOnDead(pos)
spineComponent.AnimationState:SetAnimation(0, RoleAnimationName.Stand, true)
this:DelayFunc(0.5, function()
poolManager:UnLoadLive(_liveNames, liveNodes[pos])
liveNodes[pos] = nil
end)
end
)