Explorar o código

Add missing C# cast in first 3D game (#5203)

Paul Joannon %!s(int64=4) %!d(string=hai) anos
pai
achega
58e73d70d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      getting_started/first_3d_game/08.score_and_replay.rst

+ 1 - 1
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<PathFollow>("SpawnPath/SpawnLocation");
             mobSpawnLocation.UnitOffset = GD.Randf();