diff --git a/tutorials/best_practices/godot_interfaces.rst b/tutorials/best_practices/godot_interfaces.rst index 535e62ffc08..ca596e194e8 100644 --- a/tutorials/best_practices/godot_interfaces.rst +++ b/tutorials/best_practices/godot_interfaces.rst @@ -464,7 +464,7 @@ accesses: func my_method(): if fn: - fn.call_func() + fn.call() # parent.gd extends Node @@ -472,7 +472,7 @@ accesses: @onready var child = $Child func _ready(): - child.fn = funcref(self, "print_me") + child.fn = print_me child.my_method() func print_me(): diff --git a/tutorials/best_practices/scene_organization.rst b/tutorials/best_practices/scene_organization.rst index 259f929ee83..bb3e5b73891 100644 --- a/tutorials/best_practices/scene_organization.rst +++ b/tutorials/best_practices/scene_organization.rst @@ -96,10 +96,10 @@ initialize it: .. code-tab:: gdscript GDScript # Parent - $Child.func_property = funcref(object_with_method, "method_on_the_object") + $Child.func_property = object_with_method.method_on_the_object # Child - func_property.call_func() # Call parent-defined method (can come from anywhere). + func_property.call() # Call parent-defined method (can come from anywhere). .. code-tab:: csharp