diff options
Diffstat (limited to 'plugins/hello_world/demo/Main.gd')
-rw-r--r-- | plugins/hello_world/demo/Main.gd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/hello_world/demo/Main.gd b/plugins/hello_world/demo/Main.gd new file mode 100644 index 0000000..c5174eb --- /dev/null +++ b/plugins/hello_world/demo/Main.gd @@ -0,0 +1,11 @@ +extends Node2D + +var hello_world_plugin : HelloWorldPlugin + +func _ready(): + hello_world_plugin = preload("res://addons/hello_world_plugin/interface/hello_world_plugin.gd").new() + + +func _on_Button_pressed(): + if hello_world_plugin: + hello_world_plugin.helloWorld() |