【逍遥游】优化转盘速度

dev_chengFeng
gaoxin 2021-10-21 16:30:38 +08:00
parent 5575ba2245
commit aa9ce7f992
1 changed files with 5 additions and 5 deletions

View File

@ -95,9 +95,9 @@ function XiaoYaoLuckyTurnTablePopup:test(itemId)
this.turnEffect2 = Timer.New(function()
this:tableTurnEffect(1/t)
t=t+5
end,0.2,10,true)
end,0.1,10,true)
this.turnEffect2:Start()
coroutine.wait(2)
coroutine.wait(1)
--减速阶段
if this.turnEffect2 then
this.turnEffect2:Stop()
@ -106,10 +106,10 @@ function XiaoYaoLuckyTurnTablePopup:test(itemId)
this.turnEffect2 = Timer.New(function()
this:tableTurnEffect(1/t)
t=t-3.3
end,0.2,10,true)
end,0.1,10,true)
this.turnEffect2:Start()
coroutine.wait(2)
this:tableTurnEffect(0.4,itemId)
coroutine.wait(1)
this:tableTurnEffect(0.2,itemId)
end)
end