This commit is contained in:
MihailRis 2026-08-19 23:50:09 +03:00
parent 834a0e85d8
commit e544d797e2
2 changed files with 15 additions and 11 deletions

View file

@ -1,6 +1,4 @@
local tsf = entity.transform
local rig = entity.skeleton
local body = entity.rigidbody
local states = {}
@ -37,7 +35,7 @@ function set_state(name, fade_time)
end
local function update(delta)
for key, state in pairs(states) do
for _, state in pairs(states) do
state.timer = state.timer + delta
local intensity = state.fade_in and 1.0 or 0.0