diff --git a/lua/app/ui/common/cell/reward_cell.lua b/lua/app/ui/common/cell/reward_cell.lua index 648455ed..b5566f7f 100644 --- a/lua/app/ui/common/cell/reward_cell.lua +++ b/lua/app/ui/common/cell/reward_cell.lua @@ -211,8 +211,10 @@ end -- 展示光效 function RewardCell:showLight(show, ui) self.rootEffect:removeAllChildren() - if show and ui ~= nil then + if show and ui ~= nil and not self.isLoadingEffectLight then + self.isLoadingEffectLight = true EffectManager:loadUIEffectAsync(EFFECT_LIGHT, ui, self.rootEffect, GConst.UI_EFFECT_ORDER.LEVEL5, function(obj) + self.isLoadingEffectLight = false obj:setAnchoredPosition(0, 0) obj:play() end)