浏览代码

Remove duplicate line from scripting tutorial

The "final code" box contained the functions `_on_Button_pressed` and `_on_button_pressed`, even though only the former was mentioned earlier in the tutorial.
The C# code didn't contain a duplicate function, so I'm reasonably sure this was a mistake.
Ryan Roden-Corrent 7 年之前
父节点
当前提交
837f4b619a
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      getting_started/step_by_step/scripting.rst

+ 0 - 3
getting_started/step_by_step/scripting.rst

@@ -290,9 +290,6 @@ The final script should look like this:
     func _on_Button_pressed():
     func _on_Button_pressed():
         get_node("Label").text = "HELLO!"
         get_node("Label").text = "HELLO!"
 
 
-    func _on_button_pressed():
-        get_node("Label").text = "HELLO!"
-
  .. code-tab:: csharp
  .. code-tab:: csharp
 
 
     using Godot;
     using Godot;