Skip to content

Commit d377eef

Browse files
committed
update teal code to work with newer version of teal
1 parent 781754a commit d377eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/scripts/game_of_life.tl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
math.randomseed(os.time())
22

3-
function init()
3+
global function init()
44

55
local LifeState = world:get_type_by_name("LifeState")
66
local life_state = world:get_component(entity,LifeState) as types.LuaLifeState
@@ -13,7 +13,7 @@ function init()
1313
end
1414
end
1515

16-
function on_update()
16+
global function on_update()
1717
local LifeState = world:get_type_by_name("LifeState")
1818
local Settings = world:get_type_by_name("Settings")
1919

0 commit comments

Comments
 (0)