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

This commit is contained in:
Paul Joannon
2021-08-27 21:24:51 +02:00
committed by GitHub
parent 70dee3f412
commit 58e73d70d4
@@ -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();