summaryrefslogtreecommitdiff
path: root/plugins/hello_world/demo/Main.gd
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuya@meta.com>2023-07-14 13:46:24 -0700
committerFredia Huya-Kouadio <fhuya@meta.com>2023-07-14 13:46:24 -0700
commitb4844e98619766232645d70f80a29c2a53bc2709 (patch)
tree500a6deee2dfbd36f4356d69a2d5cb762314b03f /plugins/hello_world/demo/Main.gd
parent1d19d5912d1ac5bfa3cf6cc30f086aee8f0464f2 (diff)
downloadgodot-android-samples-b4844e98619766232645d70f80a29c2a53bc2709.tar.gz
godot-android-samples-b4844e98619766232645d70f80a29c2a53bc2709.tar.bz2
godot-android-samples-b4844e98619766232645d70f80a29c2a53bc2709.zip
Update the directory structure to make room for additional Godot Android samples besides plugins
Diffstat (limited to 'plugins/hello_world/demo/Main.gd')
-rw-r--r--plugins/hello_world/demo/Main.gd11
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()