瀏覽代碼

Removed duplicated function in button hooking GDScript example in
step_by_step/scripting.rst
The final example at the mentioned tutorial had the function _on_Button_pressed as _on_button_pressed in the GDScript
example, this commit shall remove the duplicated function _on_button_pressed
Fixes #1556

Signed-off-by: Ibrahim Zidan <[email protected]>

Ibrahim Zidan 7 年之前
父節點
當前提交
1944caf1dd
共有 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():
         get_node("Label").text = "HELLO!"
 
-    func _on_button_pressed():
-        get_node("Label").text = "HELLO!"
-
  .. code-tab:: csharp
 
     using Godot;