فهرست منبع

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

Yuri Sizov 5 سال پیش
والد
کامیت
7ef16dd974
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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
     {
         [Signal]
-        public delegate void MySignal();
+        public delegate void MySignal(bool value, int other_value);
     }
 
 .. note::
@@ -251,7 +251,7 @@ To pass values, add them as the second argument to the ``emit_signal`` function:
     public class Main : Node
     {
         [Signal]
-        public delegate void MySignal();
+        public delegate void MySignal(bool value, int other_value);
 
         public override void _Ready()
         {