We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781754a commit d377eefCopy full SHA for d377eef
assets/scripts/game_of_life.tl
@@ -1,6 +1,6 @@
1
math.randomseed(os.time())
2
3
-function init()
+global function init()
4
5
local LifeState = world:get_type_by_name("LifeState")
6
local life_state = world:get_component(entity,LifeState) as types.LuaLifeState
@@ -13,7 +13,7 @@ function init()
13
end
14
15
16
-function on_update()
+global function on_update()
17
18
local Settings = world:get_type_by_name("Settings")
19
0 commit comments