DESKTOP-MMO982B\User 2025-07-01 18:51:12 +08:00
parent cc1db8e2a7
commit fbbf3482d6
1 changed files with 8 additions and 5 deletions

View File

@ -1604,6 +1604,11 @@ function this:RoleOnDead(pos)
local startColor = Color.New(0.07843138, 0.145098, 1, 1)
local endColor = Color.New(startColor.r, startColor.g, startColor.b, 1)
local _roleLiveGo = roleLiveGo[pos]
local _liveNodes = liveNodes[pos]
local _liveNames = liveNames[pos]
liveNames[pos] = nil
liveNodes[pos] = nil
if DoColor_Spine_Tweener[pos] then
DoColor_Spine_Tweener[pos]:Kill()
end
@ -1630,14 +1635,12 @@ function this:RoleOnDead(pos)
table.remove(DeadMaterial_Tweener, removeIndex)
end
]]
roleLiveGo[pos]:SetActive(false)
liveNodes[pos]:SetActive(false)
_roleLiveGo:SetActive(false)
_liveNodes:SetActive(false)
spineComponent.AnimationState:SetAnimation(0, RoleAnimationName.Stand, true)
this:DelayFunc(0.5, function()
poolManager:UnLoadLive(liveNames[pos], liveNodes[pos])
poolManager:UnLoadLive(_liveNames, liveNodes[pos])
end)
liveNames[pos] = nil
liveNodes[pos] = nil
end
)
end