【拍脸】优化短时间触发拍脸有可能导致报错的问题
parent
dd19b43dd6
commit
aa4f3df8b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue