update handling of Lua assets

This commit is contained in:
aliaksei.kalosha
2025-04-12 18:16:57 +02:00
parent a07a715d19
commit ecb1422937
15 changed files with 930 additions and 18 deletions

21
Sample/Lua/example.lua Normal file
View File

@@ -0,0 +1,21 @@
local dir = true
local minY = -300
local maxY = -25
function doSomething(first, other)
local pos = first.position
if dir then
pos.y = pos.y + 10
if pos.y >= maxY then
dir = false
end
else
pos.y = pos.y - 10
if pos.y <= minY then
dir = true
end
end
first.position = pos
end