【抽卡】尝试修复报错黑屏

dev_chengFeng
gaoxin 2021-11-10 16:57:44 +08:00
parent 20df877296
commit a78b4996dd
1 changed files with 3 additions and 1 deletions

View File

@ -417,7 +417,9 @@ function SingleRecruitPanel:UpdataPanelData(_heroData)
local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
poolManager:SetLiveClearCall(GetResourcePath(heroStaticData.Live), testLiveGO, function ()
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete - idle
if SkeletonGraphic and not IsNull(SkeletonGraphic) then
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete - idle
end
end)
self.dragView:SetDragGO(testLiveGO)
SetHeroStars(this.spLoader, self.starGrid, _heroData.star,1,Vector2.New(52,52),-2,Vector2.New(0.5,0.5))