瀏覽代碼

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()
         {