From 58e73d70d45a7f7e78dca0fb1941f20022471b91 Mon Sep 17 00:00:00 2001 From: Paul Joannon <437025+paulloz@users.noreply.github.com> Date: Fri, 27 Aug 2021 21:24:51 +0200 Subject: [PATCH] Add missing C# cast in first 3D game (#5203) --- getting_started/first_3d_game/08.score_and_replay.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/first_3d_game/08.score_and_replay.rst b/getting_started/first_3d_game/08.score_and_replay.rst index 040620687..030abe8ae 100644 --- a/getting_started/first_3d_game/08.score_and_replay.rst +++ b/getting_started/first_3d_game/08.score_and_replay.rst @@ -429,7 +429,7 @@ Here is the complete ``Main.gd`` script for reference. public void OnMobTimerTimeout() { - Mob mob = MobScene.Instance(); + Mob mob = (Mob)MobScene.Instance(); var mobSpawnLocation = GetNode("SpawnPath/SpawnLocation"); mobSpawnLocation.UnitOffset = GD.Randf();