From b987dba961d7e8bf24876d82d486a6ac7b39c1c4 Mon Sep 17 00:00:00 2001 From: Rafael Correa Date: Sat, 10 Sep 2022 10:47:58 -0300 Subject: [PATCH] Changed instance method to typed version --- getting_started/first_2d_game/05.the_main_game_scene.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/first_2d_game/05.the_main_game_scene.rst b/getting_started/first_2d_game/05.the_main_game_scene.rst index 4bba187c9..b36c12f51 100644 --- a/getting_started/first_2d_game/05.the_main_game_scene.rst +++ b/getting_started/first_2d_game/05.the_main_game_scene.rst @@ -356,7 +356,7 @@ Note that a new instance must be added to the scene using ``add_child()``. // obviously Mob and PathFollow2D, since they appear later on the line. // Create a new instance of the Mob scene. - var mob = (Mob)MobScene.Instance(); + var mob = MobScene.Instance(); // Choose a random location on Path2D. var mobSpawnLocation = GetNode("MobPath/MobSpawnLocation");