diff options
Diffstat (limited to 'hello_world/demo/Main.gd')
-rw-r--r-- | hello_world/demo/Main.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hello_world/demo/Main.gd b/hello_world/demo/Main.gd new file mode 100644 index 0000000..11b332b --- /dev/null +++ b/hello_world/demo/Main.gd @@ -0,0 +1,12 @@ +extends Node2D + +var hello_world + +func _ready(): + if Engine.has_singleton("HelloWorld"): + hello_world = Engine.get_singleton("HelloWorld") + + +func _on_Button_pressed(): + if hello_world: + hello_world.helloWorld() |