mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
834a0e85d8
commit
e544d797e2
2 changed files with 15 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue