❔ this is my code and error can someone help?
(on line 23)
why are you calling spawnEnemy inside spawnEnemy
Also, why did VS not see it as an error immediately...?
Probably not set up properly to work with Unity?
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.
how do I do that
Ah, disregard the second bot message
Only the first one applies
cause I noticed intellisense never works for me
A dead giveaway it hasn't been set up properly, then
You probably open loose
.csfiles or something, instead of opening the project as a whole
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.