震屏bug

This commit is contained in:
chenxi 2023-04-27 11:00:06 +08:00
parent f4afa2e96c
commit d62c7b8d54

View File

@ -687,7 +687,7 @@ function BattleUI:shakeScreen(shakeType, duration)
self.shakeTween:Restart()
else
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
CacheVector2.x = 0
CacheVector2.y = length