mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 20:29:03 +00:00
Add missing C# cast in first 3D game (#5203)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user