mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
@@ -65,7 +65,7 @@ initialize it:
|
||||
.. code-tab:: csharp
|
||||
|
||||
// Parent
|
||||
GetNode("Child").Connect("SignalName", ObjectWithMethod, "MethodOnTheObject");
|
||||
GetNode("Child").Connect("SignalName", Callable.From(ObjectWithMethod.MethodOnTheObject));
|
||||
|
||||
// Child
|
||||
EmitSignal("SignalName"); // Triggers parent-defined behavior.
|
||||
|
||||
Reference in New Issue
Block a user