|
@@ -161,7 +161,7 @@ clicked. For that, we'll need a script that extends from
|
|
|
|
|
|
|
|
|
func _enter_tree():
|
|
|
- connect("pressed", self, "clicked")
|
|
|
+ pressed.connect(clicked)
|
|
|
|
|
|
|
|
|
func clicked():
|
|
@@ -177,10 +177,10 @@ clicked. For that, we'll need a script that extends from
|
|
|
{
|
|
|
public override void _EnterTree()
|
|
|
{
|
|
|
- Connect("pressed", this, "clicked");
|
|
|
+ Connect("pressed", Clicked);
|
|
|
}
|
|
|
|
|
|
- public void clicked()
|
|
|
+ public void Clicked()
|
|
|
{
|
|
|
GD.Print("You clicked me!");
|
|
|
}
|