mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
fix 'making_plugin' tutorial code snippet (#5585)
* Fix making plugin tutorial
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user