So im spawning enemy prefabs in random locations (donut spawn) around the player.
When the player shoots the enemy, the bullets go right through them. The collision doesnt occur.
I did:
GameObject enemy = (GameObject) Instantiate(Resources.Load("Enemy"), SpawnVector(5,15), Quaternion.identity);
It works fine when I drop the enemy in through the editor and run the game.
Please Help!
I couldn’t find a solution using search.