【森罗音效】福星高照老头的音效,界面关闭不停

dev_chengFeng
zhangqiang 2021-06-10 17:56:07 +08:00
parent 529067bb2f
commit 5d57464da8
2 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,8 @@ end
function this.Close()
this.root:SetActive(false)
SoundManager.PlaySound(SoundConfig.BGM_CarbonMap)
end
function this.Destroy()

View File

@ -110,7 +110,7 @@ end
--设置速度
local index = 1
function this.tableTurnEffect()
function this.tableTurnEffect(index)
local red = Util.GetGameObject(this.itemsList[index],"Red")
red:SetActive(false)
if index == 12 then--t归零
@ -121,7 +121,9 @@ function this.tableTurnEffect()
index = index + 1
--检测最后的奖励
local cfg = this.TrialGameConfig[this.list[index]]
SoundManager.PlaySound(SoundConfig.UI_Xingyunzhuanpan)
if not index then
SoundManager.PlaySound(SoundConfig.UI_Xingyunzhuanpan)
end
if stopId and stopId == cfg.Id then
--游戏结束显示掉落
Timer.New(function()