diff --git a/getting_started/first_2d_game/03.coding_the_player.rst b/getting_started/first_2d_game/03.coding_the_player.rst index ec10a528a..15daeac2e 100644 --- a/getting_started/first_2d_game/03.coding_the_player.rst +++ b/getting_started/first_2d_game/03.coding_the_player.rst @@ -438,7 +438,7 @@ Add the following at the top of the script. If you're using GDScript, add it aft // Don't forget to rebuild the project so the editor knows about the new signal. [Signal] - public delegate void Hit(); + public delegate void HitEventHandler(); .. code-tab:: cpp diff --git a/getting_started/first_2d_game/06.heads_up_display.rst b/getting_started/first_2d_game/06.heads_up_display.rst index 34955367a..d165eaf32 100644 --- a/getting_started/first_2d_game/06.heads_up_display.rst +++ b/getting_started/first_2d_game/06.heads_up_display.rst @@ -111,7 +111,7 @@ Now add this script to ``HUD``: // Don't forget to rebuild the project so the editor knows about the new signal. [Signal] - public delegate void StartGame(); + public delegate void StartGameEventHandler(); } .. code-tab:: cpp @@ -302,7 +302,7 @@ signal of ``StartButton`` and add the following code to the new functions: public void OnStartButtonPressed() { GetNode