震屏bug
This commit is contained in:
parent
f4afa2e96c
commit
d62c7b8d54
@ -687,7 +687,7 @@ function BattleUI:shakeScreen(shakeType, duration)
|
|||||||
self.shakeTween:Restart()
|
self.shakeTween:Restart()
|
||||||
else
|
else
|
||||||
self.shakeTween:Kill()
|
self.shakeTween:Kill()
|
||||||
local length = ConfigManager:getConfig("const")["shake_level_" .. math.ceil(shakeType / 2)].value / 100
|
local length = ConfigManager:getConfig("const")["shake_level_" .. math.ceil(shakeType / 2)].value
|
||||||
if shakeType % 2 == 0 then
|
if shakeType % 2 == 0 then
|
||||||
CacheVector2.x = 0
|
CacheVector2.x = 0
|
||||||
CacheVector2.y = length
|
CacheVector2.y = length
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user