【森罗】修复转盘游戏点击报错

dev_chengFeng hotfix/china/xipu/1.1.8
gaoxin 2021-06-11 20:15:44 +08:00 committed by JieLing
parent eb27240907
commit 46c1fb1070
1 changed files with 3 additions and 5 deletions

View File

@ -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()