From c22b887d48c8402cb179f969d05a6c6726b95ac4 Mon Sep 17 00:00:00 2001 From: Fang Date: Tue, 29 Aug 2023 17:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=B5=84=E6=BA=90=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/common/cell/reward_cell.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)