blob: 11b332b11b296fea5fd64579b3760192ece9adcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
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()
|