【点将台】尝试修复山河社稷图黑屏

gaoxin 2021-12-02 04:33:57 +08:00
parent e2c42fcdb5
commit b8137b0d7c
1 changed files with 6 additions and 5 deletions

View File

@ -152,11 +152,7 @@ function RecruitPanelNew:OnShow(sortingOrder)
self.liveNode.name = name
SetHEeroLiveToward(self.liveNode,heroConfig.Toward)
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
poolManager:SetLiveClearCall(name, self.liveNode, function ()
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete - idle
end)
SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
end
end
@ -276,6 +272,11 @@ function RecruitPanelNew:OnDestroy()
end
end
self.upHeroPreList = {}
if self.liveNode then
poolManager:UnLoadLive(self.liveNode.name, self.liveNode)
self.liveNode = nil
end
end
--刷新剩余次数