|
@@ -349,9 +349,10 @@ Now we need to connect the ``HUD`` functionality to our ``Main`` script. This
|
|
requires a few additions to the ``Main`` scene:
|
|
requires a few additions to the ``Main`` scene:
|
|
|
|
|
|
In the Node tab, connect the HUD's ``start_game`` signal to the ``new_game()``
|
|
In the Node tab, connect the HUD's ``start_game`` signal to the ``new_game()``
|
|
-function of the Main node by typing "new_game" in the "Receiver Method" in the
|
|
|
|
-"Connect a Signal" window. Verify that the green connection icon now appears
|
|
|
|
-next to ``func new_game()`` in the script.
|
|
|
|
|
|
+function of the Main node by clicking the "Pick" button in the "Connect a Signal"
|
|
|
|
+window and selecting the ``new_game()`` method or type "new_game" below "Receiver Method"
|
|
|
|
+in the window. Verify that the green connection icon now appears next to
|
|
|
|
+``func new_game()`` in the script.
|
|
|
|
|
|
In ``new_game()``, update the score display and show the "Get Ready" message:
|
|
In ``new_game()``, update the score display and show the "Get Ready" message:
|
|
|
|
|