fix bug
This commit is contained in:
parent
c6b4df528f
commit
a5542778a7
@ -46,6 +46,7 @@ end
|
||||
|
||||
function SummonManager:onForceSummonRsp(result)
|
||||
if result.status ~= 0 then
|
||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.FORCE_SUMMON)
|
||||
return
|
||||
end
|
||||
DataManager.SummonData:updateSummonCount(result.reqData.id, result.reqData.times, result.reqData.free)
|
||||
|
||||
@ -147,6 +147,11 @@ function SummonMainUI:onLoadRootComplete()
|
||||
|
||||
-------------抽奖相关---------
|
||||
self:addEventListener(EventManager.CUSTOM_EVENT.FORCE_SUMMON, function(result, newHero)
|
||||
if not result then
|
||||
self:enableTouch()
|
||||
self.uiNode:setActive(true)
|
||||
return
|
||||
end
|
||||
-- self:refreshWishBtn()
|
||||
self:playSummonAni(result, newHero)
|
||||
end)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user