Skip to content

Commit 8cf2fba

Browse files
authored
Merge pull request #7825 from Hugo-Trentesaux/master-1
Update singletons_autoload.rst
2 parents a9c8519 + 4605865 commit 8cf2fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/scripting/singletons_autoload.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Finally, we need to fill the empty callback functions in the two scenes:
262262
private void OnButtonPressed()
263263
{
264264
var global = GetNode<Global>("/root/Global");
265-
global.GotoScene("res://scene_2.tscn");
265+
global.GotoScene("res://Scene2.tscn");
266266
}
267267

268268
and
@@ -282,7 +282,7 @@ and
282282
private void OnButtonPressed()
283283
{
284284
var global = GetNode<Global>("/root/Global");
285-
global.GotoScene("res://scene_1.tscn");
285+
global.GotoScene("res://Scene1.tscn");
286286
}
287287

288288
Run the project and test that you can switch between scenes by pressing

0 commit comments

Comments
 (0)