dev_chengFeng
jiaoyangna 2020-07-16 18:45:58 +08:00
parent c282e19b5e
commit 47a1c94495
1 changed files with 4 additions and 4 deletions

View File

@ -88,11 +88,11 @@ function this.test(itemId)
if not this.turnEffect2 then if not this.turnEffect2 then
this.turnEffect2 = Timer.New(function() this.turnEffect2 = Timer.New(function()
this.tableTurnEffect(1/t) this.tableTurnEffect(1/t)
t=t-5 t=t-3.3
end,0.2,10,true) end,0.2,10,true)
this.turnEffect2:Start() this.turnEffect2:Start()
end end
coroutine.wait(2) coroutine.wait(2)
this.tableTurnEffect(0.4,itemId) this.tableTurnEffect(0.4,itemId)
end) end)
end end
@ -100,7 +100,7 @@ end
--设置速度 --设置速度
local index = 1 local index = 1
function this.tableTurnEffect(speed,itemId) function this.tableTurnEffect(speed,itemId)
if this.turnEffect then if this.turnEffect then
this.turnEffect:Stop() this.turnEffect:Stop()
this.turnEffect = nil this.turnEffect = nil
end end