Forráskód Böngészése

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 éve
szülő
commit
837f4b619a
1 módosított fájl, 0 hozzáadás és 3 törlés
  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;