2
0
Эх сурвалжийг харах

Merge pull request #2799 from anoadragon453/anoa/clean_up_code_example

Clean up Getting Started code example
Hugo Locurcio 5 жил өмнө
parent
commit
a17c489aa2

+ 5 - 1
getting_started/step_by_step/your_first_game.rst

@@ -995,10 +995,14 @@ temporarily, such as "Get Ready". On the ``MessageTimer``, set the
 
     func show_game_over():
         show_message("Game Over")
+
         yield($MessageTimer, "timeout")
+
         $MessageLabel.text = "Dodge the\nCreeps!"
         $MessageLabel.show()
-        yield(get_tree().create_timer(1), 'timeout')
+
+        yield(get_tree().create_timer(1), "timeout")
+
         $StartButton.show()
 
  .. code-tab:: csharp