【拍脸】优化短时间触发拍脸有可能导致报错的问题

dev_chengFeng
gaoxin 2021-06-10 16:10:12 +08:00
parent dd19b43dd6
commit aa4f3df8b0
1 changed files with 7 additions and 2 deletions

View File

@ -370,10 +370,15 @@ function this.OpenPatFacePanel(_patFaceAllData)
this.patFaceCallList:Push(function()
PatFaceManager.SetisFirstLogVal(1, { _patFaceAllData[i] })
UIManager.OpenPanel(UIName.PatFacePanel, _patFaceAllData[i], function()
local time2 = Timer.New(function()
if this.time2 then
this.time2:Stop()
this.time2 = nil
end
this.time2 = Timer.New(function()
this.patFaceCallList:Pop()()
this.time2 = nil
end, 0.5)
time2:Start()
this.time2:Start()
end)
end)
end