From 46c1fb107033170ac3faed7fa47cd4bf36364f6d Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 11 Jun 2021 20:15:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A3=AE=E7=BD=97=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BD=AC=E7=9B=98=E6=B8=B8=E6=88=8F=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua b/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua index 73f03c410c..aa4ebb4962 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua @@ -25,7 +25,7 @@ function this.Init(context, root, gameType, gameId, gameParams) for index, value in ipairs(this.gameParams) do table.insert(this.list,value) end - this.tableTurnEffect(1) + -- this.tableTurnEffect(1) end @@ -82,6 +82,7 @@ function this.Update() if Time.realtimeSinceStartup - lastTime >= timeSpace then lastTime = Time.realtimeSinceStartup this.tableTurnEffect() + SoundManager.PlaySound(SoundConfig.UI_Xingyunzhuanpan) end end end @@ -110,7 +111,7 @@ end --设置速度 local index = 1 -function this.tableTurnEffect(index) +function this.tableTurnEffect() local red = Util.GetGameObject(this.itemsList[index],"Red") red:SetActive(false) if index == 12 then--t归零 @@ -121,9 +122,6 @@ function this.tableTurnEffect(index) index = index + 1 --检测最后的奖励 local cfg = this.TrialGameConfig[this.list[index]] - if not index then - SoundManager.PlaySound(SoundConfig.UI_Xingyunzhuanpan) - end if stopId and stopId == cfg.Id then --游戏结束显示掉落 Timer.New(function()