|
@@ -429,7 +429,7 @@ Here is the complete ``Main.gd`` script for reference.
|
|
|
|
|
|
public void OnMobTimerTimeout()
|
|
public void OnMobTimerTimeout()
|
|
{
|
|
{
|
|
- Mob mob = MobScene.Instance();
|
|
|
|
|
|
+ Mob mob = (Mob)MobScene.Instance();
|
|
|
|
|
|
var mobSpawnLocation = GetNode<PathFollow>("SpawnPath/SpawnLocation");
|
|
var mobSpawnLocation = GetNode<PathFollow>("SpawnPath/SpawnLocation");
|
|
mobSpawnLocation.UnitOffset = GD.Randf();
|
|
mobSpawnLocation.UnitOffset = GD.Randf();
|