|
I can't seam to get this script to work for spawning an enemy.
Also I would like the enemy to be spawned randomly, how should I do that?
(comments are locked)
|
|
If this is your script you probably get a syntax error because you're missing a dot between ("spawnpoint") and transform.position. Also instead of searching for the object named spawnpoint it would be a good idea to save a reference to the spawnpoint. (like you did for the prefab) If you want to spawn at random position look into Random.insideUnitCircle.
(comments are locked)
|
