Преглед на файлове

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

Paul Joannon преди 4 години
родител
ревизия
58e73d70d4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();