mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Merge pull request #7035 from The-Briel-Deal/patch-1
Fix incorrect auto-generated signal names
This commit is contained in:
@@ -246,10 +246,10 @@ the other two timers. ``ScoreTimer`` will increment the score by 1.
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _on_ScoreTimer_timeout():
|
||||
func _on_score_timer_timeout():
|
||||
score += 1
|
||||
|
||||
func _on_StartTimer_timeout():
|
||||
func _on_start_timer_timeout():
|
||||
$MobTimer.start()
|
||||
$ScoreTimer.start()
|
||||
|
||||
@@ -302,7 +302,7 @@ Note that a new instance must be added to the scene using ``add_child()``.
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _on_MobTimer_timeout():
|
||||
func _on_mob_timer_timeout():
|
||||
# Create a new instance of the Mob scene.
|
||||
var mob = mob_scene.instantiate()
|
||||
|
||||
|
||||
@@ -297,11 +297,11 @@ signal of ``StartButton``, and add the following code to the new functions:
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _on_StartButton_pressed():
|
||||
func _on_start_button_pressed():
|
||||
$StartButton.hide()
|
||||
start_game.emit()
|
||||
|
||||
func _on_MessageTimer_timeout():
|
||||
func _on_message_timer_timeout():
|
||||
$Message.hide()
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
Reference in New Issue
Block a user