mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
C#: Replace FuncRef with Callable in outdated example
This commit is contained in:
@@ -106,10 +106,10 @@ initialize it:
|
||||
.. code-tab:: csharp
|
||||
|
||||
// Parent
|
||||
GetNode("Child").Set("FuncProperty", GD.FuncRef(ObjectWithMethod, "MethodOnTheObject"));
|
||||
GetNode("Child").Set("FuncProperty", Callable.From(ObjectWithMethod.MethodOnTheObject));
|
||||
|
||||
// Child
|
||||
FuncProperty.CallFunc(); // Call parent-defined method (can come from anywhere).
|
||||
FuncProperty.Call(); // Call parent-defined method (can come from anywhere).
|
||||
|
||||
4. Initialize a Node or other Object reference.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user