fix 'making_plugin' tutorial code snippet (#5585)

* Fix making plugin tutorial
This commit is contained in:
Bruno Garcia
2022-03-03 12:52:27 +01:00
committed by GitHub
parent 50101158b8
commit 1381983226

View File

@@ -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!");
}