❔ this is my code and error can someone help?

Ffegan1/8/2023
ImageImage
Ccanton71/8/2023
spawnEnemy(spawnEnemy(....?
Ccanton71/8/2023
(on line 23)
Ddont1/8/2023
why are you calling spawnEnemy inside spawnEnemy
AAngius1/8/2023
Also, why did VS not see it as an error immediately...?
AAngius1/8/2023
Probably not set up properly to work with Unity?
SSuiram11/8/2023
The error means that you call spawnEnemy with without the enemy parameter. More precisely you call StartCoroutine and as a parameter you use the return value of spawnEnemy and as the first parameter of it you use the return value of spawnEnemy, but when you call spawnEnemy as the first line you only enter the parameter interval and not enemy. Overall I have to say that line 23 in your code makes very little sense in my opinion. Even if you specified the parameter enemy, since spawnEnemy calls itself in SpawnEnemy and as far as I can see there is no termination condition, an infinite loop would result.
Ffegan1/9/2023
how do I do that
AAngius1/9/2023
$unitytools
AAngius1/9/2023
Ah, disregard the second bot message
AAngius1/9/2023
Only the first one applies
Ffegan1/9/2023
cause I noticed intellisense never works for me
AAngius1/9/2023
A dead giveaway it hasn't been set up properly, then
AAngius1/9/2023
You probably open loose .cs files or something, instead of opening the project as a whole
AAccord1/10/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.