Explorar el Código

Add missing arguments to C# example of signals (#3328)

Yuri Sizov hace 5 años
padre
commit
7ef16dd974
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      getting_started/step_by_step/signals.rst

+ 2 - 2
getting_started/step_by_step/signals.rst

@@ -224,7 +224,7 @@ argument names between parentheses:
     public class Main : Node
     public class Main : Node
     {
     {
         [Signal]
         [Signal]
-        public delegate void MySignal();
+        public delegate void MySignal(bool value, int other_value);
     }
     }
 
 
 .. note::
 .. note::
@@ -251,7 +251,7 @@ To pass values, add them as the second argument to the ``emit_signal`` function:
     public class Main : Node
     public class Main : Node
     {
     {
         [Signal]
         [Signal]
-        public delegate void MySignal();
+        public delegate void MySignal(bool value, int other_value);
 
 
         public override void _Ready()
         public override void _Ready()
         {
         {