Browse Source

Fix typo in singletons_autoload

Chris Bradfield 6 năm trước cách đây
mục cha
commit
07784e7d3f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      getting_started/step_by_step/singletons_autoload.rst

+ 2 - 2
getting_started/step_by_step/singletons_autoload.rst

@@ -238,7 +238,7 @@ Finally, we need to fill the empty callback functions in the two scenes:
     # Add to 'Scene1.gd'.
 
     func _on_Button_pressed():
-        Global.goto_scene("res://Scene1.tscn")
+        Global.goto_scene("res://Scene2.tscn")
 
  .. code-tab:: csharp
 
@@ -258,7 +258,7 @@ and
     # Add to 'Scene2.gd'.
 
     func _on_Button_pressed():
-        Global.goto_scene("res://Scene2.tscn")
+        Global.goto_scene("res://Scene1.tscn")
 
  .. code-tab:: csharp