소스 검색

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();