summaryrefslogtreecommitdiff
path: root/hello_signals/demo/Main.gd
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuya@meta.com>2023-07-02 16:54:41 -0700
committerFredia Huya-Kouadio <fhuya@meta.com>2023-07-02 16:54:41 -0700
commitb1eff319f02106190b64c37610df3fbf3fa61075 (patch)
tree68e7aab48b93fd90f9895b41b21b0987e69dcea1 /hello_signals/demo/Main.gd
parentf6a336cf56d5d653b05c12fb7f71b5da595e49d4 (diff)
downloadgodot-android-samples-b1eff319f02106190b64c37610df3fbf3fa61075.tar.gz
godot-android-samples-b1eff319f02106190b64c37610df3fbf3fa61075.tar.bz2
godot-android-samples-b1eff319f02106190b64c37610df3fbf3fa61075.zip
Update the 'Hello Signals' Android plugin demo to match the new Godot 4.2 format
See https://github.com/godotengine/godot/pull/78958 for reference.
Diffstat (limited to 'hello_signals/demo/Main.gd')
-rw-r--r--hello_signals/demo/Main.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/hello_signals/demo/Main.gd b/hello_signals/demo/Main.gd
index 22e5255..1b3e972 100644
--- a/hello_signals/demo/Main.gd
+++ b/hello_signals/demo/Main.gd
@@ -7,9 +7,9 @@ var helloSignals
func _ready():
if Engine.has_singleton("HelloSignals"):
helloSignals = Engine.get_singleton("HelloSignals")
- helloSignals.connect("TikTok", self, "_on_tiktok")
+ helloSignals.connect("TikTok", Callable(self, "_on_tiktok"))
- $Button.connect("pressed", self, "_on_Button_pressed")
+ $Button.connect("pressed", Callable(self, "_on_Button_pressed"))
else:
print("Couldn't find HelloSignals singleton")