mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
update signal name
This commit is contained in:
@@ -289,7 +289,7 @@ the other two timers. ``ScoreTimer`` will increment the score by 1.
|
||||
godot::register_property("mob_scene", &Main::mob_scene, (godot::Ref<godot::PackedScene>)nullptr);
|
||||
}
|
||||
|
||||
In ``_on_MobTimer_timeout()``, we will create a mob instance, pick a random
|
||||
In ``_on_mob_timer_timeout()``, we will create a mob instance, pick a random
|
||||
starting location along the ``Path2D``, and set the mob in motion. The
|
||||
``PathFollow2D`` node will automatically rotate as it follows the path, so we
|
||||
will use that to select the mob's direction as well as its position.
|
||||
|
||||
@@ -391,7 +391,7 @@ In ``game_over()`` we need to call the corresponding ``HUD`` function:
|
||||
Just a reminder: we don't want to start the new game automatically, so
|
||||
remove the call to ``new_game()`` in ``_ready()`` if you haven't yet.
|
||||
|
||||
Finally, add this to ``_on_ScoreTimer_timeout()`` to keep the display in sync
|
||||
Finally, add this to ``_on_score_timer_timeout()`` to keep the display in sync
|
||||
with the changing score:
|
||||
|
||||
.. tabs::
|
||||
|
||||
Reference in New Issue
Block a user